UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

31 lines (30 loc) 991 B
import { GoabCheckboxListOnChangeDetail, Margins } from '@abgov/ui-components-common'; import { JSX } from 'react'; declare module "react" { namespace JSX { interface IntrinsicElements { "goa-checkbox-list": WCProps & React.HTMLAttributes<HTMLElement>; } } } interface WCProps extends Margins { ref: React.RefObject<HTMLElement | null>; name: string; value?: string[]; disabled?: string; error?: string; testid?: string; maxwidth?: string; } export interface GoabCheckboxListProps extends Margins { name: string; value?: string[]; disabled?: boolean; error?: boolean; testId?: string; maxWidth?: string; children?: React.ReactNode; onChange?: (detail: GoabCheckboxListOnChangeDetail) => void; } export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, children, onChange, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element; export default GoabCheckboxList;