A styled HTML input
element with type=checkbox
.
HTMLInputElement props are included.
/** Additional class names to apply. */
export let variant: string = '';
HTMLInputElement events are included.
HTMLInputElement blur
, click
, and focus
methods are included.
Use the default slot to provide content for the optional label.
<div class="sterling-checkbox">
<div class="container">
<!-- hidden-->
<input />
<div class="indicator" />
</div>
<label>
<slot {checked} {colorful} {disabled} {inputId} {value} {variant} />
</label>
</div>