surf-design-system
Version:
Surf Design System
24 lines (23 loc) • 879 B
TypeScript
/** @jsxRuntime classic */
/** @jsx jsx */
import React from 'react';
export interface CheckboxDisabledProps {
disabled?: boolean;
}
export interface CheckboxLabelClickProps extends CheckboxDisabledProps {
labelClick?: boolean;
checked?: boolean;
indeterminate?: boolean;
isLabelColorToggleAvailable?: boolean;
}
export interface CheckboxProps extends CheckboxLabelClickProps {
id: string;
label?: React.ReactNode;
name?: string;
value?: string;
disabled?: boolean;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
marginLeft?: string;
tabIndex?: number;
}
export default function Checkbox({ id, label, name, value, checked, indeterminate, disabled, labelClick, onChange, marginLeft, isLabelColorToggleAvailable, tabIndex, }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;