Skip to content

Commit

Permalink
fix(Icon): update typings for corner prop (#3393)
Browse files Browse the repository at this point in the history
* Corner prop can be a string, not just boolean

See docs: https://react.semantic-ui.com/elements/icon/

* Update Icon.d.ts
  • Loading branch information
areading314 authored and layershifter committed Jan 22, 2019
1 parent d363d34 commit f2c39cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/Icon/Icon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SemanticCOLORS, SemanticICONS } from '../../generic'
import IconGroup from './IconGroup'

export type IconSizeProp = 'mini' | 'tiny' | 'small' | 'large' | 'big' | 'huge' | 'massive'
export type IconCorner = 'bottom right' | 'top right' | 'top left' | 'bottom left'

export interface IconProps extends StrictIconProps {
[key: string]: any
Expand All @@ -26,7 +27,7 @@ export interface StrictIconProps {
color?: SemanticCOLORS

/** Icons can display a smaller corner icon. */
corner?: boolean
corner?: boolean | IconCorner

/** Show that the icon is inactive. */
disabled?: boolean
Expand Down

0 comments on commit f2c39cb

Please sign in to comment.