UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

18 lines (17 loc) 1.33 kB
/// <reference types="react" /> import { StyleProps } from '../@declares'; import { IconDefinition } from "@fortawesome/fontawesome-common-types"; import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome'; import { IconProp } from '@fortawesome/fontawesome-svg-core'; declare namespace FAI { type ComponentInput = { icon: IconProp | IconDefinition | any; } & StyleProps.BasicElement & Omit<FontAwesomeIconProps, 'icon'>; type Shortcuts = { [key in ShortCutNames]: React.FC<Omit<ComponentInput, 'icon'>>; }; type ShortCutNames = 'User' | 'X' | 'AngleRight' | 'AngleLeft' | 'AngleUp' | 'AngleDown' | 'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'ChevronDown' | 'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretDown' | 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Rotate' | 'Redo' | 'Check' | 'CheckCircle' | 'Question' | 'QuestionCircle' | 'Exclamation' | 'ExclamationTriangle' | 'Home' | 'Share' | 'Search' | 'YenSign' | 'Heart' | 'Star' | 'Edit' | 'Pen' | 'Copy' | 'File' | 'Trash' | 'Bars' | 'Download' | 'Link' | 'LinkSlash' | 'ExternalLinkAlt' | 'Gear' | 'Plus' | 'Minus' | 'EllipsisH' | 'EllipsisV' | 'PaperPlane' | 'Image' | 'Ban' | 'Location'; type Methods = React.FC<ComponentInput> & Shortcuts; } declare const FAI: FAI.Methods; export { FAI, FAI as default };