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.

NameTypeIs RequiredDefaultDescription
namestringrequirednoneName of icon
sizenumber or stringoptional32pxHeight and width of icon (in pixels)
colorstringoptional#000Color of icon