Checkbox & Radio Component

Flexible selection components with various styles and states.

Basic Checkboxes

The basic checkbox component

Checkbox with Description & Error

Checkbox with description and error

You must accept the terms to continue
Allow us to collect anonymous usage data
This field is required

Checkbox Sizes

Checkbox with different sizes

Checkbox Variants

Checkbox with different variants

With a border around it
Styled as a card with more emphasis

Controlled Checkbox

Checkbox with controlled state

Radio Group Component

Various radio button styles and configurations.

Basic Radio Group

A basic example of a radio group component.

Basic features for individuals
Advanced features for professionals
Collaboration features for teams
Custom solutions for large organizations

Horizontal Layout


With Error

Please select an option

Radio Group Variants

Different variants of the radio group component.

Default Variant

Receive all notifications
Only receive important notifications

Outline Variant

Receive all notifications
Only receive important notifications
Do not receive any notifications

Card Variant

Basic features for individuals
Advanced features for professionals
Collaboration features for teams
Custom solutions for large organizations

Radio Group Sizes

Different sizes of the radio group component.

Small


Medium (Default)


Large

API Reference

Complete documentation of the Checkbox and RadioGroup components.

Checkbox Props

PropDescriptionTypeDefault
checkedControlled checked stateboolean-
defaultCheckedDefault checked state (uncontrolled)booleanfalse
indeterminateWhether to show indeterminate statebooleanfalse
onChangeCallback when checked state changes(checked: boolean) => void-
labelLabel text for the checkboxstring-
descriptionAdditional description textstring-
errorError message to displaystring-
sizeSize of the checkbox"sm" | "md" | "lg""md"
variantVisual style variant"default" | "outline" | "card""default"

RadioGroup Props

PropDescriptionTypeDefault
optionsArray of radio optionsRadioOption[]Required
valueCurrently selected value (controlled)string-
defaultValueDefault selected value (uncontrolled)string-
onChangeCallback when selection changes(value: string) => void-
nameName attribute for the radio inputsstringauto-generated
disabledWhether the entire group is disabledbooleanfalse
errorError message to displaystring-
orientationLayout orientation of the radio options"horizontal" | "vertical""vertical"
sizeSize of the radio buttons"sm" | "md" | "lg""md"
variantVisual style variant"default" | "outline" | "card""default"

RadioOption Interface