UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

35 lines 1.42 kB
import React from 'react'; import type { SxProp } from '../../../sx'; 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; } & SxProp; export type { CheckboxOrRadioGroupLabelProps } from './CheckboxOrRadioGroupLabel'; declare const _default: React.FC<React.PropsWithChildren<CheckboxOrRadioGroupProps>> & { Caption: React.FC<SxProp & { children?: React.ReactNode | undefined; } & { className?: string; }>; Label: React.FC<React.PropsWithChildren<import("./CheckboxOrRadioGroupLabel").CheckboxOrRadioGroupLabelProps>>; Validation: React.FC<React.PropsWithChildren<import("./CheckboxOrRadioGroupValidation").CheckboxOrRadioGroupValidationProps>>; }; export default _default; //# sourceMappingURL=CheckboxOrRadioGroup.d.ts.map