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.

20 lines 773 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) */ export declare const FieldsetLegend: React.ForwardRefExoticComponent<FieldsetLegendProps & React.RefAttributes<HTMLDivElement>>; export interface FieldsetLegendState { /** * Whether the component should ignore user interaction. */ disabled: boolean; } export interface FieldsetLegendProps extends BaseUIComponentProps<'div', FieldsetLegend.State> {} export declare namespace FieldsetLegend { type State = FieldsetLegendState; type Props = FieldsetLegendProps; }