@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

184

Version

3.4.9

License

ISC

Unpacked Size

749 kB

Total Files

525

Last publish

Collaborators

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