UNPKG

summit-kit

Version:

A React component library for building modern web applications with with an earthy and outdoorsy flair.

18 lines (17 loc) 753 B
import { ClassesProps } from '../Types/general.ts'; type IconProps = { name: string; size?: number; color?: string; } & ClassesProps; /** * Renders an icon component based on the provided `name` prop. * * @param name - The name of the icon to render. Must correspond to a key in the `Icons` object. * @param size - The size of the icon in pixels. Defaults to 24. * @param color - The color of the icon. Defaults to "currentColor". * @param props - Additional props, including optional `classes` for custom CSS classes. * @returns The corresponding icon component if found, otherwise a fallback message. */ export declare const Icon: ({ name, size, color, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element; export {};