@pongo-ui/react-icon
v0.1.13
Published
A collection of Icons to provide user's clarity on an action.
Downloads
9
Readme
Icon
Icons help provide user's clarity on an action. They are especially helpful in Buttons, Menus, and other controls to further convey a text based definition.
Use
- Install the @pongo-ui/react-icon component.
Using NPM
npm install @pongo-ui/react-icon
Using Yarn
yarn add @pongo-ui/react-icon
Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme
Set up the provider in your app:
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate a Icon component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Icon } from '@pongo-ui/react-icon'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Icon />
<Provider>
)
}
API
To learn more about the Icon API take a look at the Icon Interface file.