Skip to content

Components Forms

Checkbox

A checkbox. The slot is its label.

$ pyblade ui:add checkbox

Checkboxes

Props

Written as attributes of <pb-ui.checkbox>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.

NameTypeDefaultDescription
checked bool False Whether it starts checked
invalid bool False Marks it as invalid
class str "" Added to the classes of the component. Every other attribute is spread on it too.