Separator
Visually or semantically separates content.
Radix Primitives
An open-source UI component library.
Blog
Docs
Source
import { Component } from '@angular/core';
import { HlmSeparatorDirective } from '@spartan-ng/ui-separator-helm';
import { BrnSeparatorComponent } from '@spartan-ng/brain/separator';
@Component({
selector: 'spartan-separator-preview',
standalone: true,
imports: [HlmSeparatorDirective, BrnSeparatorComponent],
template: `
<div>
<div class="space-y-1">
<h4 class="text-sm font-medium leading-none">Radix Primitives</h4>
<p class="text-sm text-muted-foreground">An open-source UI component library.</p>
</div>
<brn-separator hlmSeparator class="my-4" />
<div class="flex items-center h-5 text-sm space-x-4">
<div>Blog</div>
<brn-separator decorative hlmSeparator orientation="vertical" />
<div>Docs</div>
<brn-separator decorative hlmSeparator orientation="vertical" />
<div>Source</div>
</div>
</div>
`,
})
export class SeparatorPreviewComponent {}
Installation
npx nx g @spartan-ng/cli:ui separator
ng g @spartan-ng/cli:ui separator
Usage
import { HlmSeparatorDirective } from '@spartan-ng/ui-separator-helm';
import { BrnSeparatorComponent } from '@spartan-ng/brain/separator';
<brn-separator hlmSeparator/>