UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

34 lines 1.47 kB
import React from 'react'; export type CheckboxOrRadioGroupProps = { /** Class name for custom styling */ className?: string; /** * Used when associating the input group with a label other than `CheckboxOrRadioGroup.Label` */ ['aria-labelledby']?: string; /** * Whether the input group allows user input */ disabled?: boolean; /** * The unique identifier for this input group. Used to associate the label, validation text, and caption text. * You may want a custom ID to make it easier to select elements in integration tests. */ id?: string; /** * If true, the user must make a selection before the owning form can be submitted */ required?: boolean; }; export type { CheckboxOrRadioGroupLabelProps } from './CheckboxOrRadioGroupLabel'; declare const _default: React.FC<React.PropsWithChildren<CheckboxOrRadioGroupProps>> & { Caption: import("../../../utils/types").FCWithSlotMarker<{ className?: string; } & { children?: React.ReactNode | undefined; }>; Label: import("../../../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("./CheckboxOrRadioGroupLabel").CheckboxOrRadioGroupLabelProps>>; Validation: import("../../../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("./CheckboxOrRadioGroupValidation").CheckboxOrRadioGroupValidationProps>>; }; export default _default; //# sourceMappingURL=CheckboxOrRadioGroup.d.ts.map