icon
v4.15.0arrow_drop_downThis implementation is a remix of the Icon component in Blueprintjs: https://github.com/palantir/blueprint/blob/813e93f2/packages/core/src/components/icon/icon.tsx#L15 Refer to the LICENSE for BlueprintJS here: https://github.com/palantir/blueprint/blob/develop/LICENSE
Name | Type | Default value | Description |
---|---|---|---|
color | string | 'currentColor' | Color of icon. Equivalent to setting CSS |
icon (required) | string | Name of a Blueprint UI icon, or an icon element, to render. This prop is required because it determines the content of the component, but it can be explicitly set to falsy values to render nothing.
| |
size | number | 16 | Size of the icon, in pixels. Blueprint contains 16px and 20px SVG icon images, and chooses the appropriate resolution based on this prop. |
title | string | Description string. Browsers usually render this as a tooltip on hover, whereas screen readers will use it for aural feedback. By default, this is set to the icon’s name for accessibility. | |
style | object | CSS style properties. | |
theme (required) | object | Theme provided by ThemeProvider. |