yarn add bs-icon
# Or
npm install bs-icon
Import the css file in your app (it uses bootstrap icons v1.10.3
)
import 'bs-icon/icons.css'
Use them anywhere:
import Icon from 'vs-icon'
export default function App(){
return (
<div>
<Icon name='alarm-fill'/>
</div>
)
}
The name
property accepts the name of the icon.