import { default as React } from 'react'; import { ElementFont, SurfaceColor } from '../../utils'; import { BoxBaseProps } from '../base'; /** * Props for {@link Fieldset}. * Extends {@link BoxBaseProps} except for `elementClass` and `component`. * * @category Fieldset */ export interface FieldsetProps extends Omit { /** Surface background token. */ color?: SurfaceColor; /** Supporting text displayed below the fieldset content. */ description?: string; /** Text color of the description. */ descriptionColor?: SurfaceColor; /** Font token applied to the description text. */ descriptionFont?: ElementFont; /** Disables all form controls inside the fieldset. */ disabled?: boolean; /** Error message displayed below the fieldset content. Overrides `description`. */ error?: string; /** Font token applied to the legend text. */ font?: ElementFont; /** Alias for `legend`. Used as fallback when `legend` is not provided. */ label?: string; /** Text rendered inside the native `` element. */ legend?: string; /** Marks the fieldset as required. Adds a required indicator to the legend. */ required?: boolean; } /** * Semantic wrapper for grouping related form controls. * * Renders a native fieldset with an optional legend. * Used to group checkboxes or radio buttons. * * @function * @example *
* * * *
* * @category Fieldset */ export declare const Fieldset: React.ForwardRefExoticComponent>;