@ultraviolet/illustrations
Version:
Ultraviolet Illustrations
23 lines (22 loc) • 923 B
TypeScript
import type { consoleLightTheme as theme } from '@ultraviolet/themes';
import { ILLUSTRATIONS } from './__generated__/Illustrations';
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;
};
/**
* 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, }: IllustrationWireProp) => import("@emotion/react/jsx-runtime").JSX.Element;
export {};