separator
bejamas-ui/separatorFreeComponent
bejamas/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by bejamas/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.bejamas.com/r/separator.jsonSource
1---2// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/separator/Separator.astro directly.3/**4 * @component Separator5 * @title Separator6 * @description Visual separator for grouping content, supporting horizontal and vertical orientation.7 * @status stable8 * @figmaUrl https://www.figma.com/design/koxai7zw5vIuBzuVxe5T2l/bejamas-ui?node-id=2511-5829&t=YFStJ3V8fXEO8QD8-49 *10 * @preview11 * <div>12 * <div class="space-y-1">13 * <h4 class="text-sm leading-none font-medium">bejamas/ui</h4>14 * <p class="text-muted-foreground text-sm">15 * An open-source UI component library.16 * </p>17 * </div>18 * <Separator class="my-4" />19 * <div class="flex h-5 items-center space-x-4 text-sm">20 * <div>Blog</div>21 * <Separator orientation="vertical" />22 * <div>Docs</div>23 * <Separator orientation="vertical" />24 * <div>Source</div>25 * </div>26 * </div>27 *28 * @usage29 *30 * ```astro nocollapse31 * ---32 * import { Separator } from '@bejamas/ui/components/separator';33 * ---34 *35 * <Separator />36 * <Separator orientation="vertical" />37 * ```38 */3940import { cn } from "@/lib/utils";4142const {43 class: className = "",44 orientation = "horizontal",45 decorative = true,46 ...props47} = Astro.props;48---4950<div51 aria-orientation={orientation}52 aria-hidden={decorative ? "true" : undefined}53 class={cn(54 "bg-border shrink-0",55 orientation === "vertical" ? "h-full w-px" : "h-px w-full",56 "shrink-0",57 className,58 )}59 {...props}60>61</div>
Files it writes
More from bejamas/ui
All 41 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | bejamas/ui | Components | Free | 1 dep · 5 files | |
| alertalert | bejamas/ui | Components | Free | no deps · 4 files | |
| avataravatar | bejamas/ui | Components | Free | no deps · 7 files | |
| badgebadge | bejamas/ui | Components | Free | no deps · 2 files | |
| breadcrumbbreadcrumb | bejamas/ui | Components | Free | no deps · 5 files | |
| buttonbutton | bejamas/ui | Components | Free | no deps · 2 files | |
| button-groupbutton-group | bejamas/ui | Components | Free | no deps · 4 files | |
| cardcard | bejamas/ui | Components | Free | no deps · 10 files |
