Separator
agentmesh/separator-exampleFreeExample
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/separator-example.jsonSource
1import {2 Example,3 ExampleWrapper,4} from "@/registry/base-vega/components/example"5import { Separator } from "@/registry/base-vega/ui/separator"67export default function SeparatorExample() {8 return (9 <ExampleWrapper>10 <SeparatorHorizontal />11 <SeparatorVertical />12 <SeparatorVerticalMenu />13 <SeparatorInList />14 </ExampleWrapper>15 )16}1718function SeparatorHorizontal() {19 return (20 <Example title="Horizontal">21 <div className="flex flex-col gap-4 text-sm style-lyra:text-xs/relaxed">22 <div className="flex flex-col gap-1">23 <div className="leading-none font-medium">shadcn/ui</div>24 <div className="text-muted-foreground">25 The Foundation for your Design System26 </div>27 </div>28 <Separator />29 <div>30 A set of beautifully designed components that you can customize,31 extend, and build on.32 </div>33 </div>34 </Example>35 )36}3738function SeparatorVertical() {39 return (40 <Example title="Vertical">41 <div className="flex h-5 items-center gap-4 text-sm style-lyra:text-xs/relaxed">42 <div>Blog</div>43 <Separator orientation="vertical" />44 <div>Docs</div>45 <Separator orientation="vertical" />46 <div>Source</div>47 </div>48 </Example>49 )50}5152function SeparatorVerticalMenu() {53 return (54 <Example title="Vertical Menu">55 <div className="flex items-center gap-2 text-sm md:gap-4 style-lyra:text-xs/relaxed">56 <div className="flex flex-col gap-1">57 <span className="font-medium">Settings</span>58 <span className="text-xs text-muted-foreground">59 Manage preferences60 </span>61 </div>62 <Separator orientation="vertical" />63 <div className="flex flex-col gap-1">64 <span className="font-medium">Account</span>65 <span className="text-xs text-muted-foreground">66 Profile & security67 </span>68 </div>69 <Separator orientation="vertical" />70 <div className="flex flex-col gap-1">71 <span className="font-medium">Help</span>72 <span className="text-xs text-muted-foreground">Support & docs</span>73 </div>74 </div>75 </Example>76 )77}7879function SeparatorInList() {80 return (81 <Example title="In List">82 <div className="flex flex-col gap-2 text-sm style-lyra:text-xs/relaxed">83 <dl className="flex items-center justify-between">84// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-example | shadcn/ui | Examples | Free | no deps | |
| Alert Dialogalert-dialog-example | shadcn/ui | Examples | Free | no deps | |
| Alertalert-example | shadcn/ui | Examples | Free | no deps | |
| Aspect Ratioaspect-ratio-example | shadcn/ui | Examples | Free | no deps | |
| Avataravatar-example | shadcn/ui | Examples | Free | no deps | |
| Badgebadge-example | shadcn/ui | Examples | Free | no deps | |
| Breadcrumbbreadcrumb-example | shadcn/ui | Examples | Free | no deps | |
| Buttonbutton-example | shadcn/ui | Examples | Free | no deps |
