Skip to content

Icon

View on: 

An element that represents an icon from a predefined set of open sourced icons.

Import



BundlerCDNReact Legacy
import '@kemet-ui/icon';
<script type="module" src="https://unpkg.com/kemet-ui@latest/dist/elements/icon.js"></script>
import { KemetIcon } from 'kemet-ui/react';

Use the size attribute to change the size of the icon.

The default library is Bootstrap Icons. You can switch the library to Font Awesome by setting the library attribute to fontawesome.

Some libraries, like Font Awesome, support families. Use it to determine which subset of Icons to load. For example, load the brand fonts:

By setting the color of the parent element, the icon will automatically inherit that color.








The gods are nature. Nature is completely free.
Version 5.0.0