UNPKG

summit-kit

Version:

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

20 lines (19 loc) 846 B
import { ClassesProps } from '../Types/general.ts'; type IconProps = { name: string; size?: number; color?: string; "aria-label"?: string; "aria-hidden"?: boolean | "true" | "false"; } & ClassesProps; /** * Renders an icon component based on the provided `name` prop. * * @param name - The name of the icon to render. Must correspond to a Lucide icon name (e.g. "Activity", "Heart"). * @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 {};