@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
18 lines (17 loc) • 716 B
TypeScript
import { HeadingSize, HeadingTag } from '../Heading/Heading.utils';
import { FieldsetProps } from './Fieldset';
export type Legend = string | {
/** The text content for the legend. */
headingText: string;
/** Defines the size of the heading, using predefined size types.
* @default 'medium'
*/
headingSize?: HeadingSize;
/** Specifies the HTML tag to be used for the heading, such as 'h1', 'h2', etc.
* @default 'h2'
*/
headingTag?: HeadingTag;
};
type ValidationProps = Pick<FieldsetProps, 'description' | 'id' | 'legend' | 'systemFeedback'>;
export declare const validateFieldsetProps: ({ description, id, legend, systemFeedback, }: ValidationProps) => void;
export {};