React OUI Icons
Icons for the Optimizely application and other OUI projects.
Implementation
This implementation consists of a Icon React Component that will generate an inline SVG icon using the data associated with the name of the icon. Any attributes will be passed as props.
View all the icons.
Using the icons
-
Download the package: Run yarn add oui-icons
to include the latest icons in your project.
-
Using an icon: You can use one of the icons in the HTML with:
import Icon from './Icon';
...
<Icon
name="search"
description="search"
size="medium"
/>
...
View all the icons.
Adding and editing icons
- Add the icon to the appropriate folder in
src/Icon/icons
. - Enter the icon internal data to the appropriate folder in
src/Icon/icons.js
. - Then follow our contributing instructions posted here