MicroClub Separator
mcoli-ui-registry/mc-separatorFreeComponent
A separator component for MicroClub UI
Live preview
live · rendered by the registry
Rendered by mcoli-ui-registry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://mcoli-ui.microclub.info/r/mc-separator.jsonSource
1'use client';23import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';45import { cn } from '@/lib/utils';67type McSeparatorProps = SeparatorPrimitive.Props & {8 size?: number;9};1011export default function McSeparator({12 className,13 orientation = 'horizontal',14 size,15 ...props16}: McSeparatorProps) {17 const isVertical = orientation === 'vertical';1819 return (20 <div className={cn('w-fit', isVertical ? 'h-full' : 'w-full')}>21 <SeparatorPrimitive22 data-slot="separator"23 orientation={orientation}24 style={{25 [isVertical ? 'height' : 'width']: size ? `${size}px` : undefined,26 }}27 className={cn(28 'shrink-0 border border-border',29 isVertical ? 'w-[1px]' : 'h-[1px]',30 className31 )}32 {...props}33 />34 </div>35 );36}3738export { McSeparator };
What it pulls in
npm packages
Files it writes
More from mcoli-ui-registry
All 42 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| MicroClub Accordionmc-accordion | mcoli-ui-registry | Components | Free | 2 deps | |
| MicroClub Alertmc-alert | mcoli-ui-registry | Components | Free | 1 dep | |
| MicroClub Alert Dialogmc-alert-dialog | mcoli-ui-registry | Components | Free | 1 dep | |
| MicroClub Avatarmc-avatar | mcoli-ui-registry | Components | Free | 1 dep | |
| MicroClub Badgemc-badge | mcoli-ui-registry | Components | Free | 1 dep | |
| MicroClub Breadcrumbmc-breadcrumb | mcoli-ui-registry | Components | Free | 2 deps | |
| MicroClub Buttonmc-button | mcoli-ui-registry | Components | Free | 2 deps | |
| MicroClub Calendarmc-calendar | mcoli-ui-registry | Components | Free | 3 deps |
