Icon
The Icon component renders an SVG icon, and can be extended through the icons property in your theme.
import { Icon } from 'minerva-ui';Usage
To use default icons from Feather Icons, you have to manually import the default icons and add them to the theme.
import { defaultIcons } from 'minerva-ui';const customTheme = { icons: defaultIcons,};return <ThemeProvider theme={customTheme}>{/* etc */}</ThemeProvider>;Color
Size
Props
These are props related to the Icon component.
| Name | Type | Is Required | Default | Description |
|---|---|---|---|---|
name | string | required | none | Name of icon |
size | number or string | optional | 32px | Height and width of icon (in pixels) |
color | string | optional | #000 | Color of icon |