mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
33 lines
506 B
Plaintext
33 lines
506 B
Plaintext
---
|
|
title: Separator
|
|
description: Visually or semantically separates content.
|
|
component: true
|
|
radix:
|
|
link: https://www.radix-ui.com/docs/primitives/components/separator
|
|
api: https://www.radix-ui.com/docs/primitives/components/separator#api-reference
|
|
---
|
|
|
|
<ComponentPreview name="separator-demo" />
|
|
|
|
## Installation
|
|
|
|
<Steps>
|
|
|
|
### CommandMenu
|
|
|
|
```bash
|
|
npx shadcn-ui@latest add separator
|
|
```
|
|
|
|
### Usage
|
|
|
|
```tsx
|
|
import { Separator } from "@/components/ui/separator"
|
|
```
|
|
|
|
```tsx
|
|
<Separator />
|
|
```
|
|
|
|
</Steps>
|