separator
fulldev-ui/separatorFreeComponent
fulldev/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by fulldev/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.full.dev/r/separator.jsonSource
1---2import type { HTMLAttributes } from "astro/types"34import { cn } from "@/lib/utils"56type Props = HTMLAttributes<"div"> & {7 orientation?: "horizontal" | "vertical"8 decorative?: boolean9}1011const {12 class: className,13 orientation = "horizontal",14 decorative = true,15 ...props16} = Astro.props17---1819<div20 data-slot="separator"21 data-orientation={orientation}22 data-horizontal={orientation === "horizontal" ? "" : undefined}23 data-vertical={orientation === "vertical" ? "" : undefined}24 role={decorative ? "none" : "separator"}25 aria-orientation={decorative ? undefined : orientation}26 class={cn(27 "bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",28 className29 )}30 {...props}31>32</div>
Files it writes
More from fulldev/ui
All 144 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | fulldev/ui | Components | Free | 1 dep · 5 files | |
| alertalert | fulldev/ui | Components | Free | no deps · 5 files | |
| alert-dialogalert-dialog | fulldev/ui | Components | Free | 1 dep · 13 files | |
| avataravatar | fulldev/ui | Components | Free | no deps · 7 files | |
| badgebadge | fulldev/ui | Components | Free | no deps · 3 files | |
| bannerbanner | fulldev/ui | Components | Free | no deps · 3 files | |
| breadcrumbbreadcrumb | fulldev/ui | Components | Free | no deps · 8 files | |
| buttonbutton | fulldev/ui | Components | Free | no deps · 3 files |
