HexColorSliders
A <Slider> and <Input> per channel to choose a HEX color value
Code
<script lang="ts">
import { HexColorSliders } from '@geoffcox/sterling-svelte';
</script>
<HexColorSliders />
Members
| Property Name | Type | Default | Comment | | red | number | 0 |
| green | number | 0 |
| blue | number | 0 |
| alpha | number | 255 |
| variant | string | '' |
Considerations
- Includes HTMLDivElement props, event, and methods
Anatomy
<div class="sterling-hex-color-sliders">
<Slider variant="red" />
<Input variant="red" />
<Slider variant="green" />
<Input variant="green" />
<Slider variant="blue" />
<Input variant="blue" />
<div class="alpha-hatch" />
<div class="alpha-gradient" />
<Slider variant="alpha" />
<Input variant="alpha" />
</div>