Icons
Available Icons
Usage
React
-
Install @hover/icons
yarn add @hover/icons -
Import icons from @hover/icons
import { Icon, IconButton, Button } from '@hover/blueprint';import { iFeather, hExpand, iAirplay, iAlertCircle } from '@hover/icons'; -
Pass imported icons as
icon
prop to component(s)
Bootstrap
-
Get the URL to the current version of the icons SVG sprite sheet
https://blueprint.hover.to/assets/icons/all-0.30.1.svg -
Append the desired icon ID as a
#
to the URLhttps://blueprint.hover.to/assets/icons/all-0.30.1.svg#i-airplay -
Reference said URL with a SVG
use
tag
Contributing New Icons
To add new icons to this repository, follow these steps:
-
Export the SVG file from figma:
- When selecting the layer of icon to export, select the box with space
(instead of the tightest possible bounding box).
- This ensures that there will be the intended space around the icon and that they all have the same uniform aspect ratio.
- Be sure to copy the
20 x 20
version of the icon from figma- Not
24 x 24
or16 x 16
.
- Not
- When selecting the layer of icon to export, select the box with space
(instead of the tightest possible bounding box).
-
Add the svg file to the repo:
- Name the icon the same way its named in figma, but in kebab case
- e.g. "User Filled" =>
user-filled.svg
- e.g. "User Filled" =>
- Add the properly named icon to
packages/icons/assets/bauhaus
.
- Name the icon the same way its named in figma, but in kebab case
-
Run the icon build command:
- Run the following command:
yarn rp icons build:bauhaus
. - The SVG components will be generated in the following locations:
packages/icons/src/bauhaus
packages/icons/src/bauhaus/native
- The icon list in the documentation application will be updated automatically.
yarn rp icons build:bauhaus - Run the following command: