File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : Separator
3+ description : Visually divide sections of content or groups of items.
4+ short-description : Visually or semantically separates content.
5+ icon : fasl-distribute-spacing-vertical
6+ ---
7+
8+ ``` blade-component-preview
9+ <div class="w-full max-w-96">
10+ <x-heading size="sm">Blade Components</x-heading>
11+ <x-paragraph size="sm" style="muted">An open-source UI component library.</x-paragraph>
12+ <x-separator class="my-4" />
13+ <div class="flex items-center gap-4">
14+ <x-paragraph size="xs">Docs</x-paragraph>
15+ <x-separator vertical />
16+ <x-paragraph size="xs">Components</x-paragraph>
17+ <x-separator vertical />
18+ <x-paragraph size="xs">Themes</x-paragraph>
19+ </div>
20+ </div>
21+ ```
22+
23+ ## Usage
24+
25+ ``` html
26+ <x-separator />
27+ ```
28+
29+ ### Component API
30+
31+ | Attribute | Default | Description |
32+ | ---------- | ------- | ------------------------------------------------------ |
33+ | ` vertical ` | ` false ` | ` bool ` <br >Determines the orientation of the separator. |
34+
35+ ## With Text
36+
37+ Add text to the separator for a more descriptive element.
38+
39+ ``` blade-component-code
40+ <x-separator>
41+ or
42+ </x-separator>
43+ ```
44+
45+ ## Style
46+
47+ Control the spinner style by supplying the ` style="" ` attribute.
48+
49+ ``` blade-component-code
50+ <div class="flex items-start justify-center gap-8 max-md:flex-col">
51+ <x-spinner />
52+ <x-spinner style="success" />
53+ <x-spinner style="info" />
54+ <x-spinner style="warning" />
55+ <x-spinner style="danger" />
56+ </div>
57+ ```
You can’t perform that action at this time.
0 commit comments