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.

16 lines 701 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) */ export declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<any>>; export type FieldLabelState = FieldRoot.State; export interface FieldLabelProps extends BaseUIComponentProps<'label', FieldLabel.State> {} export declare namespace FieldLabel { type State = FieldLabelState; type Props = FieldLabelProps; }