Components

A control for selecting one or multiple options.

Installation

npm install @mijn-ui/react-checkbox

Usage

import { Checkbox } from "@mijn-ui/react-checkbox"
<Checkbox />

API Reference

Built on Radix UI — all underlying primitive props are forwarded in addition to the props below.

PropTypeDefaultDescription
unstyledbooleanfalseOpt out of the default styles to fully customize the component.
classNamesobjectOverride classes per slot (see Style Slots below).
classNamestringAdditional classes for the root element.

Checkbox Style Slots

Slot NameTargeted ComponentPurpose
baseCheckboxStyles the root checkbox component.
indicatorCheckboxStyles the checkbox indicator.
iconCheckboxStyles the icon inside the checkbox.