3.0.1 • Published 1 year ago

@jouwomgeving/ui-icon v3.0.1

Weekly downloads
22
License
UNLICENSED
Repository
bitbucket
Last release
1 year ago

Icons

$ npm install @jouwomgeving/ui-icon

FontAwesome

We use version 4.6.3 of FontAwesome in this project.

Usage

import Trash from '@jouwomgeving/ui-icon/FontAwesome/Trash';
import * as Button from '@jouwomgeving/ui-form';

function IconButton() {
  return (
    <Button.default
      icon={
        <Trash size={12}/>
      }
      content="Verwijderen"
    />
  );
}

export default IconButton;

Naming

You can find all the icons at http://fontawesome.io/icons/. The names are all uppercased and prefix with Fa, as an example bar-chart will be FaBarChart.

Properties

PropsValuesDefaultRequired
Size9, 12, 14, 18, 2414Yes
Colorstring#fffNo

Updating

To update the current version of FontAwesome; 1. $ nvm use && npm install 2. Go to (IcoMoon)https://icomoon.io/app/#/select 3. Select only the FontAwesome library 4. Drop the FontAwesome svg icons in ui-icon/FontAwesome/assets/icons 5. Run $ npm run generate:fontawesome 6. You got a fully updated Icon set

SmashIcon

The SmashIcons will be a selected set of svg images / icons, curated by the designers.

The icons will be optimized when generating react components.

Usage

import { SmashIcon } from '@jouwomgeving/ui-icon/FontAwesome/Trash';

function Layout() {
  return (
    <SmashIcon.Mailbox size={52}/>
  );
}

export default Layout;

Properties

PropsValuesDefaultRequired
Size52Yes
3.0.1

1 year ago

3.0.0

1 year ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.7

5 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3-beta

9 years ago