UNPKG

semantic-ui-react

Version:
62 lines (41 loc) 1.38 kB
import * as React from 'react'; import { SemanticCOLORS, SemanticICONS } from '../..'; import IconGroup from './IconGroup'; export type IconSizeProp = 'mini' | 'tiny' | 'small' | 'large' | 'big' | 'huge' | 'massive'; export interface IconProps { [key: string]: any; /** An element type to render as (string or function). */ as?: any; /** Formatted to appear bordered */ bordered?: boolean; /** Icon can formatted to appear circular. */ circular?: boolean; /** Additional classes. */ className?: string; /** Color of the icon. */ color?: SemanticCOLORS; /** Icons can display a smaller corner icon. */ corner?: boolean; /** Show that the icon is inactive. */ disabled?: boolean; /** Fitted, without space to left or right of Icon. */ fitted?: boolean; /** Icon can flipped. */ flipped?: 'horizontally' | 'vertically'; /** Formatted to have its colors inverted for contrast. */ inverted?: boolean; /** Icon can be formatted as a link. */ link?: boolean; /** Icon can be used as a simple loader. */ loading?: boolean; /** Name of the icon. */ name?: SemanticICONS; /** Icon can rotated. */ rotated?: 'clockwise' | 'counterclockwise'; /** Size of the icon. */ size?: IconSizeProp; } declare class Icon extends React.Component<IconProps, {}> { static Group: typeof IconGroup; } export default Icon;