@lendi-ui/fancy-icon
TypeScript icon, indicating that this package has built-in type declarations

3.4.9 • Public • Published

@lendi-ui/fancy-icon

Adding a new icon

Add the SVG into src/fancy-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/fancy-icons-compiled.

Installation

yarn add @lendi-ui/fancy-icon

Usage example

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

<Relax />;

or, to take advantage of multiple entrypoints:

import Relax from '@lendi-ui/fancy-icon/Relax';

<Relax />;

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

Properties

<PropTable>
  <PropTable.Entry name="className" type="string" description="External classname to override style of the component"/>
  <PropTable.Entry name="height" defaultValue="16px" type={`string`} description="The Icon height"/>
  <PropTable.Entry name="width" defaultValue="16px" type={`string`} description="The Icon width"/>
</PropTable>

Readme

Keywords

none

Package Sidebar

Install

npm i @lendi-ui/fancy-icon

Weekly Downloads

679

Version

3.4.9

License

ISC

Unpacked Size

749 kB

Total Files

525

Last publish

Collaborators

  • sauburylendi
  • jamie-conlon
  • van.tran.lendi
  • ishasaxena.aussie
  • mwlendi
  • devesh.maheshwari
  • joshua-derbe-lendi
  • michaelhuttonlendi
  • simon_lau_lendi
  • benjamintan
  • kjartan.johansen
  • nooshines
  • fernandogontijo_
  • nghiato
  • sunny.niu
  • jannes.mingram.lendi
  • antoine_lendi
  • bchiong
  • lendi-owner
  • andrealin
  • malkyfaith
  • brianduan
  • yihan_lu_lendi
  • nodemacross
  • samnevers
  • boris.gordon
  • bharadwajsampath
  • luissilvalendi
  • thomaslendi
  • dimitrioslendi
  • le-kang-lendi
  • yupeili