Skip to content

Commit

Permalink
docs: add tab custom color example
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Dec 8, 2023
1 parent 216f74a commit 7ae8f6f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/docs/src/routes/(docs)/components/tab/+page.svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,18 @@ data="{[
</div>`
}</pre>
</Component>

<Component title="Tabs with custom color">
<div role="tablist" class="tabs tabs-lifted">
<button role="tab" class="tab">Tab 1</button>
<button role="tab" class="tab tab-active [--tab-bg:yellow] [--tab-border-color:orange] text-primary">Tab 2</button>
<button role="tab" class="tab">Tab 3</button>
</div>
<pre slot="html" use:replace={{ to: $prefix }}>{
`<div role="tablist" class="$$tabs $$tabs-lifted">
<a role="tab" class="$$tab">Tab 1</a>
<a role="tab" class="$$tab $$tab-active [--tab-bg:yellow] [--tab-border-color:orange] text-primary">Tab 2</a>
<a role="tab" class="$$tab">Tab 3</a>
</div>`
}</pre>
</Component>

0 comments on commit 7ae8f6f

Please sign in to comment.