9.12.2 • Published 5 months ago

@lendi-ui/icon v9.12.2

Weekly downloads
633
License
ISC
Repository
-
Last release
5 months ago

@lendi-ui/icon

Adding a new icon

Add the SVG into src/icons. Be thoughtful with naming, as this will determine the name of the component. For example, the file computer-bank will create a SVG component called computerBank (note that the kebab-case filename will become a camelCase component).

To add a new alias, navigate to the ./build/alias.json file and add the key as the original file name (in pascal case) and give it an array with all the alias' to add.

When this package is built, an equivalent react component will be created in src/icons-compiled.

Installation

yarn add @lendi-ui/icon

Usage

import { Lock } from '@lendi-ui/icon';

<Lock color="secondary.500" />;

or, to take advantage of multiple entrypoints:

import Lock from '@lendi-ui/icon/Lock';

<Lock color="secondary.500" />;

Note: You must use the above syntax across your entire codebase to see any bundle savings from entrypoints

Fill colours not working?

In this case, you will need to add a fillPath class to the element in the SVG that needs to be recoloured, this can be determined by inspecting the svg in the browser and changing the fill colour until you find the correct element.

Properties

<PropTable>
  <PropTable.Entry required name="color" type={`string`} description="The Icon color"/>
</PropTable>
9.12.2

5 months ago

9.12.1

2 years ago

9.12.0

2 years ago

9.11.7-beta.0

2 years ago

9.11.6

2 years ago

9.11.6-beta.0

2 years ago

9.11.3-beta.0

2 years ago

9.11.5

2 years ago

9.11.3

2 years ago

9.11.4

2 years ago

9.11.5-beta.0

2 years ago

9.11.1

2 years ago

9.11.2

2 years ago

9.11.3-canary.0

2 years ago

9.11.2-beta.0

2 years ago

9.11.0-canary.2

2 years ago

9.11.0

2 years ago

9.11.1-beta.0

2 years ago

9.10.4

2 years ago

9.10.5

2 years ago

9.11.0-beta.1

2 years ago

10.0.0-beta.2

2 years ago

9.10.4-beta.3

2 years ago

9.10.6-beta.0

2 years ago

9.10.5-beta.1

2 years ago

9.10.4-beta.1

2 years ago

9.10.5-beta.0

2 years ago

9.10.4-beta.2

2 years ago

9.10.5-beta.3

2 years ago

9.10.5-beta.2

2 years ago

9.10.4-beta.0

2 years ago

9.10.3

3 years ago

9.10.3-beta.0

3 years ago

9.10.2

3 years ago

9.10.1

3 years ago

9.10.0

3 years ago

9.9.23

3 years ago

9.9.22

3 years ago

9.9.21

3 years ago

9.9.20

3 years ago

9.9.19

3 years ago

9.9.18

3 years ago

9.9.17

3 years ago

9.9.16

3 years ago

9.9.15

3 years ago

9.9.13

4 years ago

9.9.14

4 years ago

9.9.12

4 years ago

9.9.11

4 years ago

9.9.10

4 years ago

9.9.9

4 years ago

9.9.8

4 years ago

9.9.7

4 years ago

9.9.6

4 years ago

9.9.5

4 years ago

9.9.4

4 years ago

9.9.2

4 years ago

9.9.3

4 years ago

9.9.0

4 years ago

9.9.1

4 years ago

9.8.0

4 years ago

9.7.5

4 years ago

9.7.4

4 years ago

9.7.3

4 years ago

9.7.2

4 years ago

9.7.1

4 years ago

9.7.0

4 years ago

10.0.0-beta.0

4 years ago

9.6.2

4 years ago

9.5.2

4 years ago

9.5.1

4 years ago

9.5.0

5 years ago

9.4.1

5 years ago

9.4.0

5 years ago

9.3.0

5 years ago

9.2.0

5 years ago

9.1.1

5 years ago

9.1.0

5 years ago

9.0.2

5 years ago

9.0.1

5 years ago

9.0.0

5 years ago

9.0.0-alpha

5 years ago

8.3.0

5 years ago

8.2.0

5 years ago

8.1.0

5 years ago

8.0.1

5 years ago

8.0.0

5 years ago

7.2.0

6 years ago

7.1.2

6 years ago

7.1.1

6 years ago

7.1.0

6 years ago

7.0.1

6 years ago

7.0.0

6 years ago

6.0.0

6 years ago

5.3.1

6 years ago

5.3.0

6 years ago

5.2.0

6 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.3.2

6 years ago

4.3.1

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago