1.12.3 • Published 1 month ago

@igloo-ui/icons v1.12.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

@igloo-ui/icons

A set of icons handcrafted by Officevibe

Getting started

To install @igloo-ui/icons in your project, you will need to run the following command using npm:

npm install @igloo-ui/icons

If you prefer Yarn, use the following command instead:

yarn add @igloo-ui/icons

Usage

Icons in this package support the following sizes: 16, 24, and 32 pixels. You can import an icon component into your project by referring to its name:

import Alert from '@igloo-ui/icons/dist/Alert';

function MyComponent() {
  return (
    <>
      <Alert /> Uh oh, something went wrong
    </>
  );
}

Changing the size

You can change the size of an icon by passing a prop size which takes small, medium and large. For example:

import Clock from '@igloo-ui/icons/dist/Calendar';

function MyComponent() {
  return (
    <>
      <Calendar size="large" /> Monday, Feb 2022
    </>
  );
}
PropRendered Size
small16px
medium24px is the default size
Large32px

Changing the color

You can change the color of an icon by passing in a custom class name that sets this property.

First install tokens

yarn add @igloo-ui/tokens

For example:

@import '@igloo-ui/tokens/dist/variables.css';

.my-custom-class {
  color: var(--dandelion-600);
}
import Alert from '@igloo-ui/icons/dist/Alert';

function MyComponent() {
  return (
    <>
      <Alert className="my-custom-class" /> Uh oh, something went wrong
    </>
  );
}

Accessibility

If the icon used without text, then use the ariaLabel prop to give the icon a text alternative. The label should describe the icon.

import Alert from '@igloo-ui/icons/dist/Alert';

function MyComponent() {
  return <Alert ariaLabel=" Uh oh, something went wrong" />;
}

SVG files

For projects that don’t use React, icons are also available as *.svg files in the dist/svg folder.

License

Copyright © 2019, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.

1.12.3

1 month ago

1.12.2

6 months ago

1.12.1

7 months ago

1.12.0

7 months ago

1.9.0

11 months ago

1.11.0

10 months ago

1.10.0

11 months ago

1.8.0

12 months ago

1.7.0

1 year ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.6

2 years ago

0.6.3

2 years ago

0.6.2

3 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.5.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0-alpha.2

3 years ago

0.2.0-alpha.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago