@nexusui/icons
Version:
This package contains custom icons designed specifically for NexusUI applications. These icons work in exactly the same way as the icons from [MUI](https://mui.com/material-ui/api/svg-icon/).
77 lines (54 loc) • 2.11 kB
Markdown
# NexusUI Icons
This package contains custom icons designed specifically for NexusUI applications. These icons work in exactly the same way as the icons from [MUI](https://mui.com/material-ui/api/svg-icon/).
## Installation
Add the library as a dependency to your project:
```
# With yarn
yarn add /icons
# With npm
npm install --save /icons
```
## Usage
In your typescript file, import the component(s) you want to use:
```tsx
// Replace IconName with the specific icon you want to use
import { IconName } from '/icons';
// or
import IconName from '/icons/IconName';
<IconName fontSize={'large'} color={'primary'}/>
```
## Migration Guide
### 2.X.X -> 3.0.0
The 3.0.0 release had changes names of some icons. The following icons have been renamed:
* `TransparentAppearance` to `Transparent`
* `FilledAppearance` to `CubeFilled`
if you were using these icons, you will need to update your imports. and change the name of the icon in your code.
```diff
// named imports
- import { TransparentAppearance } from '/icons';
+ import { Transparent } from '/icons';
// default imports
- import TransparentAppearance from '/icons/TransparentAppearance';
+ import Transparent from '/icons/Transparent';
// named imports
- import { FilledAppearance } from '/icons';
+ import { CubeFilled } from '/icons';
// default imports
- import FilledAppearance from '/icons/FilledAppearance';
+ import CubeFilled from '/icons/CubeFilled';
```
### 1.X.X -> 2.0.0
This package previously contained a subfolder of product logos. These logos have been migrated to a separate package (/branding). You will need to install the new package and update your imports accordingly.
```sh
yarn add /branding
or
npm install /branding
```
```diff
// named imports
- import { LogoName } from '/icons/products';
+ import { LogoName } from '/branding';
// default imports
- import LogoName from '/icons/products/LogoName';
+ import LogoName from '/branding/LogoName';
```