Skip to content

Checkbox

Selects any number of options, with checked, unchecked and indeterminate states.

import { Checkbox } from '@windmorph/react';

Playground

Code

import { useState } from 'react';import { Checkbox } from '@windmorph/react'; export function Example() {  const [checked, setChecked] = useState(true);   return (    <Checkbox      checked={checked}      onCheckedChange={setChecked}    >      I accept the terms    </Checkbox>  );}

Examples

Basic

Indeterminate (select all)

Disabled and error

Density