@spaced-out/ui-design-system
Version:
Sense UI components library
27 lines • 798 B
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { GroupAlign } from '../../types/common';
type ClassNames = Readonly<{
wrapper?: string;
checkboxGroup?: string;
errorText?: string;
}>;
export type CheckboxOptions = Array<{
label: React.ReactNode;
value: string;
}>;
export interface CheckboxGroupProps {
align?: GroupAlign;
disabled?: boolean;
name: string;
value?: Array<string>;
onChange?: (value: Array<string>) => unknown;
classNames?: ClassNames;
error?: boolean;
errorText?: string;
children?: React.ReactNode;
testId?: string;
}
export declare const CheckboxGroup: Flow.AbstractComponent<CheckboxGroupProps, HTMLDivElement>;
export {};
//# sourceMappingURL=CheckboxGroup.d.ts.map