UNPKG

@ultraviolet/illustrations

Version:
25 lines 911 B
import type { IllustrationsKeys } from './__generated__/Illustrations'; import type { CSSProperties } from 'react'; type DynamicIllustrationProps = { /** * Name of the illustration (only illustrations that do have a light and a dark version) */ name: keyof IllustrationsKeys; /** * Width of the illustration */ width?: string | number; /** * Height of the illustration */ height?: string | number; 'data-testid'?: string; className?: string; style?: CSSProperties; }; /** * DynamicIllustration is a component made to automate the render of illustrations to adapt them to the current theme (light/dark/darker). */ export declare const DynamicIllustration: ({ name, width, height, 'data-testid': dataTestId, className, style, }: DynamicIllustrationProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map