mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
feat(Checkbox): new component (#67)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -47,8 +47,7 @@ function onError (event: any) {
|
||||
</UFormField>
|
||||
|
||||
<div>
|
||||
<input id="check" v-model="checked" type="checkbox" name="check" @change="state.nested = {}">
|
||||
<label for="check"> Check me </label>
|
||||
<UCheckbox v-model="checked" name="check" label="Check me" @change="state.nested = {}" />
|
||||
</div>
|
||||
|
||||
<UForm v-if="checked && state.nested" :state="state.nested" :schema="nestedSchema">
|
||||
|
||||
Reference in New Issue
Block a user