Checkbox

Properties

Property Description Type Required
checked The state of the checkbox Boolean No

And all the common properties for all components.

Examples

Example - one checkbox
// One checkbox
{
    category: 'style',
    propName: 'foreground',
    type: 'checkbox',
    label: 'Put on foreground (z-index)',
    checked: true,
},
Example - multiple checkboxes
// Group of checkboxes
{
    category: 'conditions',
    type: 'group',
    label: 'Interests',
    children: [
        { type: 'checkbox', label: 'Animals', propName: 'animals', checked: true},
        { type: 'checkbox', label: 'Cooking', propName: 'cooking' },
        { type: 'checkbox', label: 'Video games', propName: 'videogames' }
    ],
},

Will render:

results matching ""

    No results matching ""