1.1.3 • Published 4 years ago

dusk-react v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

dusk-react npm version

React components for Dusk icons.

Install

# npm
$ npm install dusk-react

# yarn
$ yarn add dusk-react

Usage

Import using object destructuring:

import { Safari } from 'dusk-react';

const Component = () => (
  <Safari />
);

Import an icon directly:

import Safari from 'dusk-react/dist/icons/safari';

const Component = () => (
  <Safari />
);

Import all of the icons:

import * dusk from 'dusk-react';

const Component = () => (
  <dusk.Safari />
);

Props

size(number)

The size, in pixels, of the icon. Applies to both the width and the height.

bg(string)

Background color of the icon.

fg(string)

Foreground color of the icon.

fg2(string)

Secondary foreground color of the icon, if applicable.

Example

import { Safari } from 'dusk-react';

const Component = () => (
  <Safari
    size={300}
    bg="blue"
    fg="#FFEFD5"
  />
);

Note

The 1Password icon is exported as Password, because Javascript variable names cannot begin with a number.

Related

  • Dusk: simple, customizable macOS application icons
1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago