UNPKG

hh-ui-components

Version:
46 lines (45 loc) 915 B
import React from "react"; export interface IconProps { /** * stroke Width */ strokeWidth?: "stroke-current stroke-1" | "stroke-current stroke-2" | "stroke-current stroke-0"; /** * SVG or Image Width */ width?: "w-4" | "w-5" | "w-6" | "w-7" | "w-8"; /** * SVG or Image Height */ height?: "h-4" | "h-5" | "h-6" | "h-7" | "h-8"; /** * Image SRC */ src?: string; /** * viewBox eg.(0,0,16,16)? */ viewBox?: string; /** * if is your image? */ isImage?: boolean; /** * Icon name? */ name?: any; /** * Image Alt Tag? */ alt?: string; /** * Add Custom Css - Pass class Name or tailwind Css (Eg. btn_custom) */ css?: string; /** * Optional click handler */ onClick?: () => void; } declare const Icon: React.FC<IconProps>; export default Icon;