UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

42 lines (41 loc) 1.7 kB
import { ChangeEventHandler, FocusEventHandler } from "../utils/types.js"; import "../utils/index.js"; import { ThemingProps } from "../theme/types.js"; import "../theme/index.js"; import { SystemProps } from "../system/system.js"; import "../system/index.js"; import { ReactNode } from "react"; //#region src/radio/radioGroup.types.d.ts type RadioGroupProps = SystemProps & ThemingProps<'Radio'> & { /** Deprecated. Please use variant instead. @deprecated */ colorScheme?: 'blue' | 'prussian'; /** Passes the prop to each radio. */ disabled?: boolean; /** Error text rendered below the radio stack. Overrides `helpText` and marks the group as invalid. */ errorText?: ReactNode; /** * Overrides the gap between the group label/help text and the radio stack (defaults to a * size-scaled value). Only takes effect when `label` or `helpText` is set. `gap` (from * `SystemProps`) overrides the gap between individual radios in either case. */ groupGap?: SystemProps['gap']; /** Help text rendered below the radio stack. Overridden by `errorText` when both are set. */ helpText?: ReactNode; /** Displays radio buttons in a row. */ isRow?: boolean; /** Group heading rendered above the radio stack. */ label?: ReactNode; /** Passes the prop to each checkbox. */ name?: string; /** Passes the prop to each checkbox. */ onBlur?: FocusEventHandler; /** Passes the prop to each checkbox. */ onChange?: ChangeEventHandler; /** Passes the prop to each checkbox. */ onFocus?: FocusEventHandler; /** Passes the prop to each checkbox. */ value?: number | string; }; //#endregion export { RadioGroupProps }; //# sourceMappingURL=radioGroup.types.d.ts.map