import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { RadioProps } from '../Radio/RadioProps'; import { ApplyColorInversion, SxProps } from '../styles/types'; import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types'; export type RadioGroupSlot = 'root'; export interface RadioGroupSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export type RadioGroupSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface RadioGroupTypeMap

{ props: P & { /** * Class name applied to the root element. */ className?: string; /** * The component used for the Root slot. * Either a string to use a HTML element or a component. */ component?: React.ElementType; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: RadioProps['color']; /** * The default value. Use when the component is not controlled. */ defaultValue?: any; /** * The radio's `disabledIcon` prop. If specified, the value is passed down to every radios under this element. * @default false */ disableIcon?: boolean; /** * The name used to reference the value of the control. * If you don't provide this prop, it falls back to a randomly generated name. */ name?: string; /** * The radio's `overlay` prop. If specified, the value is passed down to every radios under this element. * @default false */ overlay?: boolean; /** * Callback fired when a radio button is selected. * * @param {React.ChangeEvent} event The event source of the callback. * You can pull out the new value by accessing `event.target.value` (string). */ onChange?: (event: React.ChangeEvent) => void; /** * The component orientation. * @default 'vertical' */ orientation?: 'horizontal' | 'vertical'; /** * The size of the component. * @default 'md' */ size?: RadioProps['size']; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * Value of the selected radio button. The DOM API casts this to a string. */ value?: any; /** * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use. * @default 'plain' */ variant?: RadioProps['variant']; } & RadioGroupSlotsAndSlotProps; defaultComponent: D; } export type RadioGroupProps = OverrideProps, D>; export interface RadioGroupOwnerState extends ApplyColorInversion { }