UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

57 lines (56 loc) 1.53 kB
import type { BaseProps } from '../../BaseProps'; import type { FieldsetLabelSize, FieldsetState, Theme } from '../types'; export type PFieldsetProps = BaseProps & { /** * The label text. */ label?: string; /** * The size of the label text. */ labelSize?: FieldsetLabelSize; /** * The message styled depending on validation state. */ message?: string; /** * Marks the Fieldset as required. */ required?: boolean; /** * The validation state. */ state?: FieldsetState; /** * Adapts color depending on theme. */ theme?: Theme; }; export declare const PFieldset: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & { /** * The label text. */ label?: string; /** * The size of the label text. */ labelSize?: FieldsetLabelSize; /** * The message styled depending on validation state. */ message?: string; /** * Marks the Fieldset as required. */ required?: boolean; /** * The validation state. */ state?: FieldsetState; /** * Adapts color depending on theme. */ theme?: Theme; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;