Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Shadcn Separator for React and Tailwind

Visually separate content with a line.

shadcn.io

A set of primitive components for building UI.

A collection of accessible, beautiful, and customizable components.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/separator.json

Usage

import { Separator } from "@/components/ui/separator";
<div className="flex max-w-sm flex-col gap-4 text-sm">
  <div className="flex flex-col gap-1">
    <h4 className="font-medium leading-none">shadcn.io</h4>
    <p className="text-muted-foreground">
      A set of primitive components for building UI.
    </p>
  </div>
  <Separator />
  <div>
    A collection of accessible, beautiful, and customizable components.
  </div>
</div>

Demos

List

Vertical

API Reference

Separator

div

PropType
AttributeType