import { Ref, FocusEventHandler } from 'react'; import { HTMLChakraProps, SlotRecipeProps, UnstyledProp } from '@chakra-ui/react/styled-system'; type RichTextInputRecipeProps = SlotRecipeProps<"nimbusRichTextInput">; export type RichTextInputRootSlotProps = HTMLChakraProps<"div", RichTextInputRecipeProps & UnstyledProp>; export type RichTextInputToolbarSlotProps = HTMLChakraProps<"div">; export type RichTextInputEditableSlotProps = HTMLChakraProps<"div">; type DefaultExcludedProps = "css" | "asChild" | "as" | "onChange"; export type RichTextInputProps = Omit & { /** * The ref for the rich text input component */ ref?: Ref; /** * The HTML value of the rich text input */ value?: string; /** * The default HTML value of the rich text input (uncontrolled) */ defaultValue?: string; /** * Called when the value changes */ onChange?: (value: string) => void; /** * Called when the input is focused */ onFocus?: FocusEventHandler; /** * Called when the input is blurred */ onBlur?: FocusEventHandler; /** * Placeholder text to show when the editor is empty */ placeholder?: string; /** * Whether the input is disabled */ isDisabled?: boolean; /** * Whether the input is read-only */ isReadOnly?: boolean; /** * Whether the input is in an invalid state */ isInvalid?: boolean; /** * Whether to focus the input when it mounts */ autoFocus?: boolean; }; export {};