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.

49 lines (48 loc) 1.63 kB
import type { BaseProps } from '../../BaseProps'; import type { SelectedAriaAttributes, TagDismissibleAriaAttribute, TagDismissibleColor, Theme } from '../types'; export type PTagDismissibleProps = BaseProps & { /** * Add ARIA attributes. */ aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>; /** * Background color variations */ color?: TagDismissibleColor; /** * A boolean value that, if present, renders the tag dismissible as a compact version. */ compact?: boolean; /** * The label text. */ label?: string; /** * Adapts the color when used on dark background. */ theme?: Theme; }; export declare const PTagDismissible: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & { /** * Add ARIA attributes. */ aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>; /** * Background color variations */ color?: TagDismissibleColor; /** * A boolean value that, if present, renders the tag dismissible as a compact version. */ compact?: boolean; /** * The label text. */ label?: string; /** * Adapts the color when used on dark background. */ theme?: Theme; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;