Separator (Extended)
basecn/separator-extendedFreeComponent
Visually or semantically separates content.
Live preview
live · rendered by the registry
Rendered by basecn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://basecn.dev/r/separator-extended.jsonSource
1import * as React from "react";2import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";34import { cn } from "@/lib/utils";5import { cva, VariantProps } from "class-variance-authority";67const separatorVariants = cva(8 "shrink-0 data-[orientation=horizontal]:border-t data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:border-e",9 {10 variants: {11 variant: {12 default: "border-solid",13 dashed: "border-dashed",14 dotted: "border-dotted",15 double:16 "border-double p-px data-[orientation=horizontal]:border-y data-[orientation=vertical]:border-x",17 },18 },19 }20);2122function Separator({23 className,24 ...props25}: React.ComponentProps<typeof SeparatorPrimitive> &26 VariantProps<typeof separatorVariants>) {27 return (28 <SeparatorPrimitive29 data-slot="separator"30 className={cn(separatorVariants({ variant: props.variant }), className)}31 {...props}32 />33 );34}3536export { Separator };
What it pulls in
npm packages
Files it writes
More from basecn
All 56 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | basecn | Components | Free | 2 deps | |
| Alertalert | basecn | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | basecn | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | basecn | Components | Free | no deps | |
| Autocompleteautocomplete | basecn | Components | Free | 2 deps | |
| Avataravatar | basecn | Components | Free | 1 dep | |
| Badgebadge | basecn | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | basecn | Components | Free | 2 deps |
