Skip to main content

Checkbox

v.5.0.1

Installation

yarn add @mercell/checkbox-react

Usage

Using the Checkbox component is as simple as importing it like this.

import { Checkbox } from '@mercell/checkbox-react';
Live Editor
Result

Types, definitions, etc.

CheckboxProps
interface Props {
labelProps?: JSX.IntrinsicElements['label'];
children: ReactNode;
invalid?: boolean;
} & MutableRefObject<HTMLInput> & JSX.IntrinsicElements['input']
NameTypeDefaultRequiredDescription
labelPropsJSX.IntrinsicElements['label']-noCustom props for the label
childrenReactNode-yesThe label content
invalidbooleanfalsenoIf the label is invalid or not