@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.
73 lines (72 loc) • 2.25 kB
TypeScript
import type { BaseProps } from '../../BaseProps';
import type { BreakpointCustomizable, TextareaWrapperState, Theme } from '../types';
export type PTextareaWrapperProps = BaseProps & {
/**
* The description text.
*/
description?: string;
/**
* Show or hide label. For better accessibility it is recommended to show the label.
*/
hideLabel?: BreakpointCustomizable<boolean>;
/**
* The label text.
*/
label?: string;
/**
* The message styled depending on validation state.
*/
message?: string;
/**
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
*/
showCharacterCount?: boolean;
/**
* Show or hide max character count.
*/
showCounter?: boolean;
/**
* The validation state.
*/
state?: TextareaWrapperState;
/**
* Adapts the color depending on the theme.
*/
theme?: Theme;
};
export declare const PTextareaWrapper: 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 description text.
*/
description?: string;
/**
* Show or hide label. For better accessibility it is recommended to show the label.
*/
hideLabel?: BreakpointCustomizable<boolean>;
/**
* The label text.
*/
label?: string;
/**
* The message styled depending on validation state.
*/
message?: string;
/**
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
*/
showCharacterCount?: boolean;
/**
* Show or hide max character count.
*/
showCounter?: boolean;
/**
* The validation state.
*/
state?: TextareaWrapperState;
/**
* Adapts the color depending on the theme.
*/
theme?: Theme;
} & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLElement>>;