UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

37 lines 1.26 kB
import * as React from 'react'; import { BaseUIComponentProps } from "../../internals/types.js"; import type { ToolbarRootState } from "../root/ToolbarRoot.js"; /** * A native input element that integrates with Toolbar keyboard navigation. * Renders an `<input>` element. * * Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar) */ export declare const ToolbarInput: React.ForwardRefExoticComponent<Omit<ToolbarInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>; export interface ToolbarInputState extends ToolbarRootState { /** * Whether the component is disabled. */ disabled: boolean; /** * Whether the component remains focusable when disabled. */ focusable: boolean; } export interface ToolbarInputProps extends BaseUIComponentProps<'input', ToolbarInputState> { /** * When `true` the item is disabled. * @default false */ disabled?: boolean | undefined; /** * When `true` the item remains focusable when disabled. * @default true */ focusableWhenDisabled?: boolean | undefined; defaultValue?: React.ComponentProps<'input'>['defaultValue'] | undefined; } export declare namespace ToolbarInput { type State = ToolbarInputState; type Props = ToolbarInputProps; }