Skip to content

Commit

Permalink
docs: #2832 range with custom color (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellosatyajit authored Feb 24, 2024
1 parent 32ce5dd commit f0bf8b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/docs/src/routes/(docs)/components/range/+page.svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,10 @@ data="{[
<input type="range" min="0" max="100" value="70" class="$$range $$range-lg" />`
}</pre>
</Component>

<Component title="Range with custom color">
<input type="range" min="0" max="100" value="40" class="range [--range-shdw:yellow] max-w-xs" />
<pre slot="html" use:replace={{ to: $prefix }}>{
`<input type="range" min="0" max="100" value="40" class="$$range $$[--range-shdw:yellow]" />`
}</pre>
</Component>

0 comments on commit f0bf8b7

Please sign in to comment.