UNPKG

@react-md/form

Version:

This package is for creating all the different form input types.

24 lines (23 loc) 965 B
import type { HTMLAttributes } from "react"; import type { PropsWithRef } from "@react-md/utils"; import type { TextFieldProps } from "../text-field/TextField"; /** * @remarks \@since 5.0.0 */ export interface MenuItemTextFieldProps extends TextFieldProps { /** * Any additional props or a `ref` to apply to the surrounding `<li>` element. */ liProps?: Readonly<PropsWithRef<HTMLAttributes<HTMLLIElement>, HTMLLIElement>>; } /** * This is a wrapper for the `TextField` component that can be used within * `Menu`s by updating the `onKeyDown` and `onClick` behavior. * * Note: This is **not** the `TextFieldWithMessage` since the message part is * hard to style nicely within menus. You'd most likely want to use another menu * for displaying errors. * * @remarks \@since 5.0.0 */ export declare const MenuItemTextField: import("react").ForwardRefExoticComponent<MenuItemTextFieldProps & import("react").RefAttributes<HTMLInputElement>>;