Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Checkbox label is not required anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 17, 2019
1 parent dab8258 commit 8d81c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Default | Required
---------- | -------- | ----------- | ------- | --------
id | [String, Number] | Unique identifier | | false
Name | String | Name of input element | | false
label | [String, Number] | Label text | | true
label | [String, Number] | Label text | | false
value, v-model | any | The model that the checkbox value syncs to. **If you are not using `v-model`, you should listen for the `input` event and update value.** | | true
checked | Boolean | Whether or not the checkbox is checked by default. | false | false
trueValue | any | The value that will be written to the model when the checkbox is checked | true | false
Expand Down
2 changes: 1 addition & 1 deletion src/components/Checkbox/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
},
label: {
type: [String, Number],
required: true,
required: false,
},
value: {
required: true,
Expand Down

0 comments on commit 8d81c09

Please sign in to comment.