MantineCheckBox#

@palmyralabs/rt-forms-mantine · form/MantineCheckBox.tsx

Overview#

Boolean checkbox — Mantine Checkbox.

Props — ICheckBoxDefinition & CheckboxProps#

Common field props plus icon / checkedIcon and every CheckboxProps (indeterminate, color, size, …).

Ref — ICheckBoxField#

interface ICheckBoxField {
  focus(): void;
  getValue(): boolean;
  setValue(v: boolean): void;
  isValid(): boolean;
  toggle(): void;
}

Example#

<MantineCheckBox
  attribute="acceptsMarketing"
  label="Send me product updates"
  defaultValue={false}
/>