Skip to main content

Checkbox

import { Checkbox } from '@dr.pogodin/react-utils';

The Checkbox component implements checkboxes themed with React Themes.

Demo
A simple checkbox

See the source code below

Properties

CheckboxTheme

Valid theme keys are:

  • checkbox - Applied to the underlying checkbox <input> element.
  • container - Applied to the root checkbox element.
  • label — Applied to the checkbox label element.

See React Themes documentation for details on visual component theming.

Examples

import { Checkbox } from '@dr.pogodin/react-utils';

export default function CheckboxExample() {
return (
<Checkbox label="A simple checkbox" />
);
}