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.81 kB
import type { BaseProps } from '../../BaseProps'; import type { BreakpointCustomizable, RadioButtonWrapperState, Theme } from '../types'; export type PRadioButtonWrapperProps = BaseProps & { /** * Show or hide label. For better accessibility it's recommended to show the label. */ hideLabel?: BreakpointCustomizable<boolean>; /** * The label text. */ label?: string; /** * @experimental Disables the radio button and shows a loading indicator. */ loading?: boolean; /** * The message styled depending on validation state. */ message?: string; /** * The validation state. */ state?: RadioButtonWrapperState; /** * Adapts the color depending on the theme. */ theme?: Theme; }; export declare const PRadioButtonWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & { /** * Show or hide label. For better accessibility it's recommended to show the label. */ hideLabel?: BreakpointCustomizable<boolean>; /** * The label text. */ label?: string; /** * @experimental Disables the radio button and shows a loading indicator. */ loading?: boolean; /** * The message styled depending on validation state. */ message?: string; /** * The validation state. */ state?: RadioButtonWrapperState; /** * Adapts the color depending on the theme. */ theme?: Theme; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;