UNPKG

@ultraviolet/illustrations

Version:
25 lines 1.03 kB
import { ILLUSTRATIONS } from './__generated__/Illustrations'; import type { consoleLightTheme as theme } from '@ultraviolet/themes'; import type { CSSProperties } from 'react'; type Color = Extract<keyof typeof theme.colors, 'primary' | 'secondary' | 'neutral' | 'success' | 'danger' | 'warning' | 'info'>; export type IllustrationWireProp = { /** * Width of the illustration */ width?: string | number; /** * Height of the illustration */ height?: string | number; 'data-testid'?: string; className?: string; sentiment?: Color; name: keyof typeof ILLUSTRATIONS; 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 WireIllustration: ({ width, height, 'data-testid': dataTestId, className, sentiment, name, style, }: IllustrationWireProp) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map