UNPKG

@base-ui-components/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.

17 lines (16 loc) 614 B
import * as React from 'react'; import { FieldRoot } from '../root/FieldRoot.js'; import type { BaseUIComponentProps } from '../../utils/types.js'; /** * An accessible label that is automatically associated with the field control. * Renders a `<label>` element. * * Documentation: [Base UI Field](https://base-ui.com/react/components/field) */ declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabel.Props & React.RefAttributes<any>>; declare namespace FieldLabel { type State = FieldRoot.State; interface Props extends BaseUIComponentProps<'div', State> { } } export { FieldLabel };