Checkbox
Component Checkbox
. Simple and elegant.
Implements mixins RequiredInputMixin
and BasicInputMixin
.
html
<Card>
<Checkbox name="conditions" label="I accept all the terms and conditions" />
</Card>
Props
initialValue
: Initial value of the component. TypeBoolean
, default valuefalse
.
html
<Card>
<Checkbox name="conditions" label="I accept all the terms and conditions" initialValue />
</Card>
required
: Wether if the checkbox is required or not when it is inside aForm
. TypeBoolean
, default valuefalse
.
html
<Card>
<Form>
<Checkbox name="conditions" label="I accept all the terms and conditions" required />
</Form>
</Card>
Emits
@input
. Native event emit.
@change
. Native change emit.
@changeField
. Custom change emit.