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 CheckboxSlot = "root" | "checkbox" | "action" | "input" | "label";
interface CheckboxPropsVariantOverrides {
}
interface CheckboxPropsColorOverrides {
}
interface CheckboxPropsSizeOverrides {
}
interface ComponentsProps {
root?: SlotComponentProps<"span", {
sx?: SxProps;
}, CheckboxOwnerState>;
checkbox?: SlotComponentProps<"span", {
sx?: SxProps;
}, CheckboxOwnerState>;
action?: SlotComponentProps<"span", {
sx?: SxProps;
}, CheckboxOwnerState>;
input?: SlotComponentProps<"input", {
sx?: SxProps;
}, CheckboxOwnerState>;
label?: SlotComponentProps<"label", {
sx?: SxProps;
}, CheckboxOwnerState>;
}
interface CheckboxTypeMap
{
props: P & UseSwitchParameters & {
/**
* The icon to display when the component is checked.
* @default
*/
checkedIcon?: React.ReactNode;
/**
* Class name applied to the root element.
*/
className?: string;
/**
* 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;
/**
* If `true`, the component appears indeterminate.
* This does not set the native input element to indeterminate due
* to inconsistent behavior across browsers.
* However, we set a `data-indeterminate` attribute on the `input`.
* @default false
*/
indeterminate?: boolean;
/**
* The icon to display when the component is indeterminate.
* @default
*/
indeterminateIcon?: React.ReactNode;
/**
* The label element next to the checkbox.
*/
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 Checkbox with ListItem component.
* @default false
*/
overlay?: boolean;
/**
* The size of the component.
* @default 'md'
*/
size?: OverridableStringUnion<"sm" | "md" | "lg", CheckboxPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps;
/**
* The variant to use.
* @default 'solid'
*/
variant?: OverridableStringUnion;
/**
* The icon when `checked` is false.
*/
uncheckedIcon?: React.ReactNode;
/**
* The value of the component. The DOM API casts this to a string.
* The browser uses "on" as the default value.
*/
value?: React.AllHTMLAttributes["value"];
};
defaultComponent: D;
}
declare type CheckboxProps = OverrideProps, D>;
interface CheckboxOwnerState extends CheckboxProps {
/**
* If `true`, the checkbox's focus is visible.
*/
focusVisible?: boolean;
}
export { CheckboxOwnerState, CheckboxProps, CheckboxPropsColorOverrides, CheckboxPropsSizeOverrides, CheckboxPropsVariantOverrides, CheckboxSlot, CheckboxTypeMap };