UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

36 lines 1.18 kB
import { JSX, ReactElement } from 'react'; export interface IconRenderProps { /** * The name of the icon to render */ iconName: string | ReactElement; /** * The color of the icon * @default '#000000' */ color?: string; /** * The size of the icon in pixels * @default 24 */ size?: number; /** * The weight/style of the icon (for Phosphor icons) * @default 'regular' */ weight?: 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone'; } /** * Dynamic icon component that renders icons based on name. * Supports Phosphor icons (from a tree-shakeable allowlist) and custom Chat * icons (ChatPT, ChatEN, ChatES). Unknown names render the Question fallback. * * @param iconName - The name of the icon to render * @param color - The color of the icon * @param size - The size of the icon in pixels * @param weight - The weight/style of the icon (for Phosphor icons) * @returns JSX element with the corresponding icon */ export declare const IconRender: ({ iconName, color, size, weight, }: IconRenderProps) => JSX.Element; export default IconRender; //# sourceMappingURL=IconRender.d.ts.map