@ozdemircibaris/react-image-editor
Version:
Professional React image editor component with blur, crop, shapes, drawing, and undo/redo functionality. Built with Fabric.js and modern React patterns.
25 lines (24 loc) • 841 B
TypeScript
import { IconNamesType } from "../../constants/icons";
interface IconProps {
/** Name of the icon to render */
name: IconNamesType;
/** Width of the icon (default: 20) */
width?: number;
/** Height of the icon (default: 20) */
height?: number;
/** Additional CSS classes for styling (use text-* classes for color) */
className?: string;
/** Optional title for accessibility */
title?: string;
}
/**
* Icon component that renders SVG icons inline
*
* Features:
* - Inline SVG rendering for better performance
* - Color control through CSS classes (text-*)
* - Type-safe icon names
* - Bundled with the library (no external dependencies)
*/
export declare const Icon: ({ name, width, height, className, title }: IconProps) => import("react/jsx-runtime").JSX.Element | null;
export default Icon;