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.

69 lines (68 loc) 2.77 kB
import type { BaseProps } from '../../BaseProps'; import type { ModelSignatureColor, ModelSignatureFetchPriority, ModelSignatureModel, ModelSignatureSize } from '../types'; export type PModelSignatureProps = BaseProps & { /** * Sets the fill color of the signature using PDS color tokens. * @default 'primary' */ color?: ModelSignatureColor; /** * Sets the browser's fetch priority hint for the signature asset (`auto`, `high`, `low`). * @default 'auto' */ fetchPriority?: ModelSignatureFetchPriority; /** * Defers loading the signature until it enters the viewport to improve initial page performance. * @default false */ lazy?: boolean; /** * Selects the Porsche model whose typographic signature SVG is displayed. * @default '911' */ model?: ModelSignatureModel; /** * When enabled, adds invisible padding so all model signatures visually align to a consistent baseline. * @default true */ safeZone?: boolean; /** * Sets the display size of the signature using predefined PDS sizes. Use `inherit` with a CSS `width` or `height` on the host for custom sizing. * @default 'small' */ size?: ModelSignatureSize; }; export declare const PModelSignature: 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 the fill color of the signature using PDS color tokens. * @default 'primary' */ color?: ModelSignatureColor; /** * Sets the browser's fetch priority hint for the signature asset (`auto`, `high`, `low`). * @default 'auto' */ fetchPriority?: ModelSignatureFetchPriority; /** * Defers loading the signature until it enters the viewport to improve initial page performance. * @default false */ lazy?: boolean; /** * Selects the Porsche model whose typographic signature SVG is displayed. * @default '911' */ model?: ModelSignatureModel; /** * When enabled, adds invisible padding so all model signatures visually align to a consistent baseline. * @default true */ safeZone?: boolean; /** * Sets the display size of the signature using predefined PDS sizes. Use `inherit` with a CSS `width` or `height` on the host for custom sizing. * @default 'small' */ size?: ModelSignatureSize; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>;