dusk-react
React components for Dusk icons.
Install
# npm $ npm install dusk-react # yarn $ yarn add dusk-react
Usage
Import using object destructuring:
; const Component = <Safari />;
Import an icon directly:
; const Component = <Safari />;
Import all of the icons:
; const Component = <duskSafari />;
Props
number
)
size(The size, in pixels, of the icon. Applies to both the width and the height.
string
)
bg(Background color of the icon.
string
)
fg(Foreground color of the icon.
string
)
fg2(Secondary foreground color of the icon, if applicable.
Example
; 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