@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.
35 lines (34 loc) • 1.71 kB
TypeScript
import type { BaseProps } from '../../BaseProps';
import type { SelectedAriaAttributes, TagDismissibleAriaAttribute } from '../types';
export type PTagDismissibleProps = BaseProps & {
/**
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
*/
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
/**
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
* @default false
*/
compact?: boolean;
/**
* Sets the visible label text displayed inside the tag alongside the dismiss button.
*/
label?: string;
};
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" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
/**
* Sets ARIA attributes on the dismiss button element, for example use `aria-label` to provide a descriptive close action for screen readers.
*/
aria?: SelectedAriaAttributes<TagDismissibleAriaAttribute>;
/**
* Reduces the tag's padding and height for use in dense layouts where vertical space is limited.
* @default false
*/
compact?: boolean;
/**
* Sets the visible label text displayed inside the tag alongside the dismiss button.
*/
label?: string;
} & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLElement>>;