@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.
33 lines (32 loc) • 1.56 kB
TypeScript
import type { BaseProps } from '../../BaseProps';
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
export type PCrestProps = BaseProps & {
/**
* Sets ARIA attributes on the anchor element to improve accessibility when the crest is used as a link.
*/
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
/**
* When set, renders the crest as an anchor element navigating to this URL when clicked.
*/
href?: string;
/**
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
* @default '_self'
*/
target?: CrestTarget;
};
export declare const PCrest: 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 anchor element to improve accessibility when the crest is used as a link.
*/
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
/**
* When set, renders the crest as an anchor element navigating to this URL when clicked.
*/
href?: string;
/**
* Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set.
* @default '_self'
*/
target?: CrestTarget;
} & import("react").RefAttributes<HTMLElement>>;