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.

21 lines (20 loc) 700 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; /** * An accessible label that is automatically associated with the fieldset. * Renders a `<div>` element. * * Documentation: [Base UI Fieldset](https://base-ui.com/react/components/fieldset) */ declare const FieldsetLegend: React.ForwardRefExoticComponent<FieldsetLegend.Props & React.RefAttributes<HTMLDivElement>>; declare namespace FieldsetLegend { interface State { /** * Whether the component should ignore user interaction. */ disabled: boolean; } interface Props extends BaseUIComponentProps<'div', State> { } } export { FieldsetLegend };