Separator/separator-with-text-

PreviousNext

A separator/separator-with-text- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/separator/separator-with-text-2.tsx
import { Separator } from "@/components/ui/separator";

export const title = "With Text Left";

const Example = () => (
  <div className="w-full max-w-sm">
    <div className="relative flex items-center gap-2">
      <span className="shrink-0 pr-2 text-xs text-muted-foreground">
        Continue with
      </span>
      <Separator className="flex-1" />
    </div>
  </div>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/separator-separator-with-text-2

Usage

import { SeparatorSeparatorWithText2 } from "@/components/separator-separator-with-text-2"
<SeparatorSeparatorWithText2 />