@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
14 lines (13 loc) • 522 B
TypeScript
import { HTMLAttributes, JSX } from 'react';
export interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
/** Content displayed next to the checkbox */
label: string;
/** Controls whether the checkbox is checked. */
checked?: boolean;
/** Disables the checkbox, preventing user interaction */
disabled?: boolean;
}
/**
* A simplified visual representation of a checkbox.
*/
export declare const OptionCheckbox: ({ label, checked, className, disabled, }: CheckboxProps) => JSX.Element;