1.0.0-alpha.0 • Published 12 months ago
@hxnova/icons v1.0.0-alpha.0
Nova Icons
This package provides a utility component for rendering Material Symbols or custom Nova icons.
Installation
# With yarn:
yarn add @hxnova/iconsUsage
Import CSS
Import the icons.css file either in your application root file or top-level css. This will set up the necessary icon fonts in order to render the icons.
// in TS/JS file
import '@hxnova/icons/icons.css'@import '@hxnova/icons/icons.css';Use the Icon component
Material Symbols
import { Icon } from '@hxnova/icons';
// outlined style
<Icon family="material" name="home" />
// filled style
<Icon family="material" name="home" filled />Nova Custom Icons
import { Icon } from '@hxnova/icons';
// outlined style
<Icon family="nova" name="Plane-Z" />Styling
The icon component can be customized using the size and color props. You can also further style the icon using CSS:
<Icon family={'material'} name={'home'} size={40} color={'gray'} />1.0.0-alpha.0
12 months ago