@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
20 lines (19 loc) • 524 B
TypeScript
/**
* Web RadioGroup Context
*
*/
import React 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: React.SyntheticEvent;
}) => void;
};
declare const RadioGroupContext: React.Context<RadioGroupContextValue>;
export default RadioGroupContext;