@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.79 kB
TypeScript
import type { BaseProps } from '../../BaseProps';
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
export type PCheckboxWrapperProps = 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 checkbox and shows a loading indicator.
*/
loading?: boolean;
/**
* The message styled depending on validation state.
*/
message?: string;
/**
* The validation state.
*/
state?: CheckboxWrapperState;
/**
* Adapts the color depending on the theme.
*/
theme?: Theme;
};
export declare const PCheckboxWrapper: 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 checkbox and shows a loading indicator.
*/
loading?: boolean;
/**
* The message styled depending on validation state.
*/
message?: string;
/**
* The validation state.
*/
state?: CheckboxWrapperState;
/**
* Adapts the color depending on the theme.
*/
theme?: Theme;
} & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLElement>>;