@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
20 lines (19 loc) • 546 B
TypeScript
/**
* Web RadioGroup Context
*
*/
import type { SyntheticEvent } from 'react';
import type { RadioGroupLabelPosition, RadioGroupSize } from './RadioGroup';
export type RadioGroupContextValue = {
name?: string;
value?: string;
size?: RadioGroupSize;
disabled?: boolean;
labelPosition?: RadioGroupLabelPosition;
onChange?: (args: {
value: string;
event: SyntheticEvent;
}) => void;
};
declare const RadioGroupContext: import("react").Context<RadioGroupContextValue>;
export default RadioGroupContext;