separator
adrianub/separatorFreeComponent
adrianub publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by adrianub on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.adrianub.dev/r/styles/new-york/separator.jsonSource
1import { computed, Directive, input } from '@angular/core'2import { cn } from '~/lib/utils'34@Directive({5 standalone: true,6 selector: '[ubSeperator]',7 host: {8 '[class]': 'computedClass()',9 },10})11export class UbSeparatorDirective {12 readonly class = input<string>()13 readonly orientation = input<'horizontal' | 'vertical'>('horizontal')1415 protected computedClass = computed(() =>16 cn(17 'shrink-0 bg-border',18 this.orientation() === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',19 this.class(),20 ),21 )22}
Files it writes
More from adrianub
All 23 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | adrianub | Components | Free | 1 dep | |
| alertalert | adrianub | Components | Free | no deps | |
| aspect-ratioaspect-ratio | adrianub | Components | Free | 1 dep | |
| avataravatar | adrianub | Components | Free | 1 dep | |
| badgebadge | adrianub | Components | Free | no deps | |
| breadcrumbbreadcrumb | adrianub | Components | Free | no deps | |
| buttonbutton | adrianub | Components | Free | no deps | |
| cardcard | adrianub | Components | Free | no deps |
