UNPKG

@uva-glass/component-library

Version:

React components UvA

17 lines (16 loc) 783 B
export interface CheckboxButtonProps { label: string; value: string; /** to set default status */ isChecked?: boolean; /** The button variant. */ variant?: 'single' | 'start' | 'middle' | 'end'; /** `true` to disable the button; otherwise, `false`. The default is `false`. */ disabled?: boolean; /** if set border becomes red */ notValid?: boolean; /** The callback function that is invoked when the checkbox button changes value. */ onSetValue: (value: string | null) => void; } /** Represents a component that acts as a checkbox, it's either set or unset. */ export declare const CheckboxButton: ({ label, value, isChecked, variant, disabled, notValid, onSetValue, }: CheckboxButtonProps) => import("react/jsx-runtime").JSX.Element;