Back to Components
Display

Separator

Visual divider between content sections.

PropsUsage ExampleVariations
Overview
Details
Left
Right

Dependencies

  • clsx
  • tailwind-merge
  • @radix-ui/react-separator

Files

  • components/ui/separator.tsx

Installation

Using shadcn CLI

npx shadcn add separator --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge @radix-ui/react-separator

Related Display Components