Checkbox Group - Keep React

A Checkbox Group is a user interface element that allows users to select multiple options from a list by checking corresponding checkboxes. This component is often used when users need to choose from a set of related options, and they can select one or more options simultaneously.

Table of Contents#

Default Checkbox Group#

The Default Checkbox Group is a pre-designed Checkbox Group component that lets users select a single option from a list of checkboxes.

Circle Checkbox Group#

When the checkboxType is set to "circle" the checkboxes within the group are displayed in a circular shape rather than the traditional square shape.

Checkbox Group With Icon#

A Checkbox Group with Icon is a Checkbox Group component that includes an icon next to each checkbox option. In this case, the icon prop is used to specify the icon that should be displayed alongside the checkboxes.

A Checkbox Group with Logo is a Checkbox Group component that includes a logo image next to each checkbox option using the img prop.

Checkbox Group With Avatar#

A Checkbox Group with Avatar is a Checkbox Group component that features an avatar image next to each checkbox option using the img prop.

Checkbox Group With Image#

A Checkbox Group with image is a Checkbox Group component that displays an image next to each checkbox option using the img prop.

API Reference#

Explore the available props for the checkbox group component

PropertyDescriptionTypeDefault
checkboxTypeSpecifies the type of checkbox style: square or circular.
square
circle
square
checkboxPositionSpecifies the position of the checkbox relative to the label.
left
right
left
titleMain title or label for the checkbox group.stringStatic Design System
descriptionAdditional description or information about the checkbox group.stringThe largest UI kit...
iconOptional icon displayed alongside the checkbox group.ReactNodeNone
imgURL of an image displayed alongside the checkbox group.stringURL
imgShapeSpecifies the shape of the image: square or circular.
square
circle
circle
valueValue of the currently selected checkbox.stringselected
selectedValue of the pre-selected checkbox, if any.stringselected
onOptionChangeCallback function when a checkbox option is changed.(e: ChangeEvent) => voidfunction