Separator/separator-with-text-

PreviousNext

A separator/separator-with-text- example

Docs
shadcnblocksblock

Preview

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

export const title = "With Text Right";

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

export default Example;

Installation

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

Usage

import { SeparatorSeparatorWithText3 } from "@/components/separator-separator-with-text-3"
<SeparatorSeparatorWithText3 />