docs: #2832 range with custom color (#2866)

This commit is contained in:
Satyajit Chaudhary 2024-02-24 06:44:10 +05:30 committed by GitHub
parent 32ce5dd500
commit f0bf8b7c98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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>