11.13.0 • Published 5 months ago

@tabula/ui-node-icon v11.13.0

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

@tabula/ui-node-icon

Icons for nodes.

Installation

Use the package manager pnpm to install @tabula/ui-node-icon.

pnpm add @tabula/ui-node-icon

You can use npm or yarn too.

Usage

We provide three size of icons:

  • small: monochrome instead of branded icons, 16x16px;
  • medium: coloured, 24x24px;
  • large coloured, 32x32px.

Small icons

You can import a small icon in the following way:

import { UiInnerJoinSIcon } from '@tabula/ui-node-icon';

Or you can import all small icons:

import { UiNodeSIcons } from '@tabula/ui-node-icon';

const ComponentWithIcon = () => <UiNodeSIcons.UiInnerJoinSIcon />;

Medium icons

You can import a small icon in the following way:

import { UiInnerJoinMIcon } from '@tabula/ui-node-icon';

Or you can import all small icons:

import { UiNodeMIcons } from '@tabula/ui-node-icon';

const ComponentWithIcon = () => <UiNodeMIcons.UiInnerJoinMIcon />;

Large icons

You can import a small icon in the following way:

import { UiInnerJoinLIcon } from '@tabula/ui-node-icon';

Or you can import all small icons:

import { UiNodeLIcons } from '@tabula/ui-node-icon';

const ComponentWithIcon = () => <UiNodeMIcons.UiInnerJoinLIcon />;

Disabled State

Medium and large icons have disabled state. They have grayscale colors in disabled state.

Disabled state can be activated in two ways: explicit providing of the isDisabled property, or when a parent which contains an icon is disabled (for example, disabled button).

The first way is explicit providing of the isDisabled property:

import { UiInnerJoinMIcon } from '@tabula/ui-node-icon';

const DisabledIcon = () => <UiInnerJoinMIcon isDisabled />

The second way is when a parent which contains the icon is disabled:

import { UiInnerJoinMIcon } from '@tabula/ui-node-icon';

const DisabledParentWithIcon = () => (
  <button disabled>
    <div>
      <UiInnerJoinMIcon />
    </div>
  </button>
);

License

This project is ISC licensed.

11.12.0

6 months ago

11.10.0

7 months ago

11.11.0

6 months ago

11.13.0

5 months ago

11.9.0

7 months ago

11.6.0

11 months ago

11.4.0

11 months ago

11.8.0

10 months ago

11.8.1

10 months ago

11.7.0

10 months ago

11.5.0

11 months ago

11.3.0

12 months ago

11.3.0-next.0

12 months ago

11.2.2

12 months ago

11.2.0

1 year ago

11.2.1

12 months ago

10.0.0

1 year ago

10.1.0

1 year ago

9.0.0-next.0

1 year ago

8.0.1

1 year ago

8.0.0

1 year ago

11.0.0-next.0

1 year ago

8.0.3

1 year ago

8.0.2

1 year ago

9.0.0

1 year ago

11.0.0

1 year ago

11.1.0

1 year ago

7.1.0

1 year ago

7.0.3-beta.0

1 year ago

7.0.2

1 year ago

7.0.1

1 year ago

7.0.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

5.0.0

2 years ago

4.2.3

2 years ago

4.2.2

2 years ago

4.2.1

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

4.1.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago