- AvatarButtonCardCheckboxFileInputFilesIconButtonInputPillProfileSearchBarSelectStatusBannerTabsToastProvider
Checkbox
An <input>
element with type="checkbox"
.
Props
id
string
optional
label
string
optional
checked
boolean
optional
Events
on:input
CheckboxEvent
Example
Binding to the checked prop
<script>
let checked = false;
</script>
<div class="button-row">
<Checkbox label="Label" bind:checked />
{#if checked}
<Pill text='Checked' small />
{/if}
</div>