import type { SxProps, Theme } from "@mui/material"; import type { StandardElementProps } from "@monorail/types"; import type { TypographyProps } from "../Typography.js"; import type { ControlProps } from "./controlProps.js"; import type { EmphaticFormControlLabelClasses } from "./emphaticFormControlLabelClasses.js"; export interface EmphaticFormControlLabelProps
extends StandardElementProps<"label", "onChange"> {
/**
* If `true`, the component appears selected.
*/
checked?: boolean;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial ;
/**
* If `true`, the control is disabled.
*/
disabled?: boolean;
/**
* If `true`, the label is rendered as it is passed without an additional typography node.
*/
disableTypography?: boolean;
/**
* A text or an element to be used in an enclosing label element.
*/
label: React.ReactNode;
name?: string;
/**
* Callback fired when the state is changed.
*
* @param {React.SyntheticEvent} event The event source of the callback.
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
*/
onChange?: (event: React.SyntheticEvent, checked: boolean) => void;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps