UNPKG

@ailibs/feather-react-ts

Version:

compact set of feather icons for React apps with type checking and auto-complete

17 lines (13 loc) 378 B
import { MouseEventHandler } from 'react'; import SvgData from './set'; export type IconName = keyof typeof SvgData; export interface IconProps { color?: string; size?: string | number; strokeWidth?: string | number; className?: string; onClick?: MouseEventHandler; } export interface IconComponentProps extends IconProps { readonly name: IconName; }