@@ -18,18 +18,18 @@ Check out **[demo and styling examples](http://mariomka.github.io/vue-checkbox-r
1818** Checkbox**
1919
2020``` html
21- <checkbox name =" terms" value =" 1" >
21+ <checkbox name =" terms" model- value =" 1" >
2222 I agree to the <a href =" #" >terms of service</a >
2323</checkbox >
2424```
2525
2626** Radio**
2727
2828``` html
29- <radio name =" robot" value =" 1" >
29+ <radio name =" robot" model- value =" 1" >
3030 I'm a robot
3131</radio >
32- <radio name =" robot" value =" 0" >
32+ <radio name =" robot" model- value =" 0" >
3333 I'm not a robot
3434</radio >
3535```
@@ -56,16 +56,16 @@ Register the plugin.
5656``` js
5757import CheckboxRadio from ' vue-checkbox-radio' ;
5858
59- Vue .use (CheckboxRadio);
59+ app .use (CheckboxRadio);
6060```
6161
6262Or register components manually.
6363
6464``` js
6565import {Checkbox , Radio } from ' vue-checkbox-radio' ;
6666
67- Vue .component (' checkbox' , Checkbox);
68- Vue .component (' radio' , Radio);
67+ app .component (' checkbox' , Checkbox);
68+ app .component (' radio' , Radio);
6969```
7070
7171## Params
@@ -78,7 +78,7 @@ id | `string` | checkbox-id-(element uid)
7878class-name | ` string ` | ` null `
7979name | ` string ` | ` null `
8080v-model | ` string ` , ` boolean ` or ` array ` | ` undefined `
81- value | ` string ` or ` boolean ` | ` null `
81+ model- value | ` string ` or ` boolean ` | ` null `
8282checked | ` boolean ` | ` false `
8383required | ` boolean ` | ` false `
8484disabled | ` boolean ` | ` false `
@@ -91,14 +91,14 @@ id | `string` | radio-id-(element uid)
9191class-name | ` string ` | ` null `
9292name | ` string ` | ` null `
9393v-model | ` string ` or ` boolean ` | ` undefined `
94- value | ` string ` or ` boolean ` | ` null `
94+ model- value | ` string ` or ` boolean ` | ` null `
9595checked | ` boolean ` | ` false `
9696required | ` boolean ` | ` false `
9797disabled | ` boolean ` | ` false `
9898
9999## Events
100100
101- Both components emit the ` input ` event to work with ` v-model ` .
101+ Both components emit the ` update:modelValue ` event to work with ` v-model ` .
102102
103103## Full example
104104
0 commit comments