@uva-glass/component-library
Version:
React components UvA
23 lines (22 loc) • 897 B
TypeScript
type CheckboxProps = {
label: string;
value: string;
disabled?: boolean;
};
export interface CheckboxButtonBarProps {
/** array with objects with label, value */
checkboxes: CheckboxProps[];
defaultValues?: string[];
label?: string;
/** 'top' | 'left' */
labelPosition?: 'top' | 'left';
required?: boolean;
/** error text to display if set */
notValidatedText?: string;
/** disables all checkboxes in the bar */
disableGroup?: boolean;
onSetValues: (value: string[]) => void;
}
/** Represents a component that shows a collection of [CheckboxButton](/story/atoms-checkboxbutton--checkbox-button-example)s. */
export declare const CheckboxButtonBar: ({ checkboxes, defaultValues, label, labelPosition, required, notValidatedText, disableGroup, onSetValues, }: CheckboxButtonBarProps) => import("react/jsx-runtime").JSX.Element;
export {};