7.1.0 • Published 28 days ago

@tabula/ui-node-icon v7.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
28 days 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.

7.1.0

28 days ago

7.0.3-beta.0

1 month ago

7.0.2

1 month ago

7.0.1

1 month ago

7.0.0

2 months ago

6.0.1

2 months ago

6.0.0

2 months ago

5.0.0

4 months ago

4.2.3

5 months ago

4.2.2

6 months ago

4.2.1

6 months ago

4.2.0

6 months ago

4.1.1

7 months ago

4.1.0

7 months ago

4.0.1

8 months ago

4.0.0

8 months ago

3.0.4

9 months ago

3.0.3

9 months ago

3.0.2

9 months ago

3.0.1

9 months ago

3.0.0

9 months ago

2.0.4

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago