import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { UseSwitchParameters } from '@mui/base/SwitchUnstyled'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type RadioSlot = "root" | "radio" | "icon" | "action" | "input" | "label"; interface RadioPropsVariantOverrides { } interface RadioPropsColorOverrides { } interface RadioPropsSizeOverrides { } interface ComponentsProps { root?: SlotComponentProps<"span", { sx?: SxProps; }, RadioOwnerState>; radio?: SlotComponentProps<"span", { sx?: SxProps; }, RadioOwnerState>; icon?: SlotComponentProps<"span", { sx?: SxProps; }, RadioOwnerState>; action?: SlotComponentProps<"span", { sx?: SxProps; }, RadioOwnerState>; input?: SlotComponentProps<"input", { sx?: SxProps; }, RadioOwnerState>; label?: SlotComponentProps<"label", { sx?: SxProps; }, RadioOwnerState>; } interface RadioTypeMap

{ props: P & UseSwitchParameters & { /** * The icon to display when the component is checked. */ checkedIcon?: React.ReactNode; /** * 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 props used for each slot inside the component. * @default {} */ componentsProps?: ComponentsProps; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * If `true`, the checked icon is removed and the selected variant is applied on the `action` element instead. * @default false */ disableIcon?: boolean; /** * The label element at the end the radio. */ label?: React.ReactNode; /** * The `name` attribute of the input. */ name?: string; /** * If `true`, the root element's position is set to initial which allows the action area to fill the nearest positioned parent. * This prop is useful for composing Radio with ListItem component. * @default false; */ overlay?: boolean; /** * The size of the component. * @default 'md' */ size?: OverridableStringUnion<"sm" | "md" | "lg", RadioPropsSizeOverrides>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The icon to display when the component is not checked. */ uncheckedIcon?: React.ReactNode; /** * The variant to use. * @default 'outlined' */ variant?: OverridableStringUnion; /** * The value of the component. The DOM API casts this to a string. */ value?: unknown; }; defaultComponent: D; } declare type RadioProps = OverrideProps, D>; interface RadioOwnerState extends RadioProps { /** * If `true`, the element's focus is visible. */ focusVisible?: boolean; /** * @internal * The value from the RadioGroup component. */ row?: boolean; /** * @internal * The internal prop for controlling CSS margin of the element. */ "data-first-child"?: string; /** * @internal * The internal prop for controlling CSS margin of the element. */ "data-parent"?: string; } export { RadioOwnerState, RadioProps, RadioPropsColorOverrides, RadioPropsSizeOverrides, RadioPropsVariantOverrides, RadioSlot, RadioTypeMap };