import { ChangeEvent } from 'react'; import { InputGroupProps } from '../shared/InputGroup/InputGroup'; import { InputRadioProps, InputRadioScale } from '../InputRadio/InputRadio'; type FilteredInputRadioProps = Readonly>; export type InputRadioGroupProps = InputGroupProps & { options: readonly FilteredInputRadioProps[]; onChange: (event: ChangeEvent) => void; selectedValue: string; /** Controls the scale of all radio inputs in the group. Overridden per-item by a `scale` on the option itself. */ scale?: InputRadioScale; }; /** * - InputRadioGroup is a controlled component: You must provide an `onChange` handler to update the `selectedValue`. * - `id` is required to associate the fieldset with the optional `message`. The `id` is also used to generate the radio inputs' shared `name` attribute. * - Use title case for the required `label` (e.g., "Choose Material", not "Choose material"). * * ## Hello, World! * * ```jsx * import { useState } from 'react'; * import { InputRadioGroup } from '@companycam/slab-web'; * * const [selectedValue, setSelectedValue] = useState("gf"); * * const handleOnChange = (event: ChangeEvent) => { * setSelectedValue(event.target.value); * }; * * return ( * * ); * ``` */ export declare function InputRadioGroup({ onChange, options, selectedValue, scale, ...props }: InputRadioGroupProps): import("react/jsx-runtime").JSX.Element; export default InputRadioGroup;