@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.
31 lines (30 loc) • 1.17 kB
TypeScript
import type { BaseProps } from '../../BaseProps';
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
export type PCrestProps = BaseProps & {
/**
* Add ARIA attributes.
*/
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
/**
* When providing an url then the component will be rendered as `<a>`.
*/
href?: string;
/**
* Target attribute where the link should be opened.
*/
target?: CrestTarget;
};
export declare const PCrest: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
/**
* Add ARIA attributes.
*/
aria?: SelectedAriaAttributes<CrestAriaAttribute>;
/**
* When providing an url then the component will be rendered as `<a>`.
*/
href?: string;
/**
* Target attribute where the link should be opened.
*/
target?: CrestTarget;
} & import("react").RefAttributes<HTMLElement>>;