Appearance
The CheckBox
provides a predefined set of appearance options.
Apart from the default vision of the CheckBox
, these alternative styling options enable you to configure each individual aspect of the component's appearance.
The current article provides details about how the component changes when the different configurations of its properties are applied. Here are the sections you can directly access:
Configurator demo
The following example demonstrates configuring different aspects of a CheckBox
appearance through a configurator.
Size
The size of the CheckBox
is controlled through its size
property. The values we can pass to the property are as follows:
small
— Sets thewidth
andheight
of the component to12px
.medium
(Default) — Sets thewidth
andheight
of the component to16px
.large
— Sets thewidth
andheight
of the component to24px
.null
— Passingnull
to thesize
property gives us the option to define acustom CSS class
that sets thewidth
andheight
of the CheckBox.
The following example demonstrates the usage of each size
option:
Roundness
The roundness of the CheckBox
is controlled through its rounded
property. The values we can pass to the property are as follows:
small
— Sets theborder radius
to1px
.medium
(Default) — Sets theborder radius
to2px
.
large
— Sets theborder radius
to4px
.
null
— Passingnull
to therounded
property gives us the option to define acustom CSS class
that defines theborder-radius
of the CheckBox.
The following example demonstrates the usage of each rounded
option: