@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
12 lines (11 loc) • 581 B
TypeScript
import { CheckboxProps } from './Checkbox';
type ValidationProps = Pick<CheckboxProps, 'label' | 'id' | 'invalid' | 'systemFeedback'>;
/**
* Validates the given properties of the DSCheckbox component for common configuration errors.
* This function is intended to be used in development mode to provide developers with
* warnings about potential misuse of the component.
*
* @param validationProps - The subset of DSCheckbox properties to validate.
*/
export declare const validateCheckboxProps: ({ label, id, invalid, systemFeedback, }: ValidationProps) => void;
export {};