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.

81 lines (80 loc) 2.39 kB
import type { BaseProps } from '../../BaseProps'; import type { SelectWrapperDropdownDirection, BreakpointCustomizable, SelectWrapperState, Theme } from '../types'; export type PSelectWrapperProps = BaseProps & { /** * The description text. */ description?: string; /** * Changes the direction to which the dropdown list appears. */ dropdownDirection?: SelectWrapperDropdownDirection; /** * Filters select options by typing a character */ filter?: boolean; /** * 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; /** * Forces rendering of native browser select dropdown */ native?: boolean; /** * The validation state. */ state?: SelectWrapperState; /** * Adapts the select color depending on the theme. */ theme?: Theme; }; export declare const PSelectWrapper: 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; /** * Changes the direction to which the dropdown list appears. */ dropdownDirection?: SelectWrapperDropdownDirection; /** * Filters select options by typing a character */ filter?: boolean; /** * 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; /** * Forces rendering of native browser select dropdown */ native?: boolean; /** * The validation state. */ state?: SelectWrapperState; /** * Adapts the select color depending on the theme. */ theme?: Theme; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;