2021-04-08 16:57:24 +02:00
|
|
|
<script>
|
|
|
|
import "@spectrum-css/checkbox/dist/index-vars.css"
|
|
|
|
|
|
|
|
export let value
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<label
|
2021-05-04 12:04:42 +02:00
|
|
|
class="spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-Checkbox--emphasized"
|
|
|
|
>
|
2021-04-08 16:57:24 +02:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
class="spectrum-Checkbox-input"
|
|
|
|
id="checkbox-1"
|
|
|
|
disabled
|
2021-05-04 12:04:42 +02:00
|
|
|
checked={!!value}
|
|
|
|
/>
|
2021-04-08 16:57:24 +02:00
|
|
|
<span class="spectrum-Checkbox-box">
|
|
|
|
<svg
|
|
|
|
class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark"
|
|
|
|
focusable="false"
|
2021-05-04 12:04:42 +02:00
|
|
|
aria-hidden="true"
|
|
|
|
>
|
2021-04-08 16:57:24 +02:00
|
|
|
<use xlink:href="#spectrum-css-icon-Checkmark100" />
|
|
|
|
</svg>
|
|
|
|
<svg
|
|
|
|
class="spectrum-Icon spectrum-UIIcon-Dash100 spectrum-Checkbox-partialCheckmark"
|
|
|
|
focusable="false"
|
2021-05-04 12:04:42 +02:00
|
|
|
aria-hidden="true"
|
|
|
|
>
|
2021-04-08 16:57:24 +02:00
|
|
|
<use xlink:href="#spectrum-css-icon-Dash100" />
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.spectrum-Checkbox {
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
.spectrum-Checkbox-box {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|