@coconut-software/ui
Version:
React components for faster and easier web development.
21 lines (20 loc) • 733 B
TypeScript
import type { PropsWithChildren } from 'react';
import type { RadioGroupDirection, RadioInputColor, RadioInputSize } from './RadioContext';
interface RadioGroupProps {
color?: RadioInputColor;
direction?: RadioGroupDirection;
defaultValue?: string | number;
disabled?: boolean;
error?: boolean;
helperText?: string;
name?: string;
onChange?: (event: {
target: {
name: string;
value: string | number;
};
}) => void;
size?: RadioInputSize;
}
declare function Group({ children, color, direction, disabled, defaultValue, error, helperText, name, onChange, size, }: PropsWithChildren<RadioGroupProps>): JSX.Element;
export default Group;