xyz-icon-set-react
TypeScript icon, indicating that this package has built-in type declarations

0.49.0 • Public • Published

XYZ Icon Set for React

Official React components package for icons from XYZ Icon Set.

List of icons available at XYZ Icon Set Website

Usage

Installation with NPM

npm install xyz-icon-set-react

Importing icon from a package

Note: Examples are shown with ES6 syntax

You can import icons selectively by its name with suffix "Icon" (to prevent variable name collisions and misuse of keywords in cases such as return or copy icons).

import { PaperPlaneIcon } from 'xyz-icon-set-react';

Icon Component Reference

const App = () => (
    <PaperPlaneIcon />
)

Themes

Importing PaperPlaneIcon will import regular version of the icon. To import thin variant of the icon, import PaperPlaneThinIcon instead.

Properties

fillOpacity

Opacity of the transparent fill inside of the icon. Accepts values between 0 and 1. It is not recommended to use higher values than 0.5 as it could break the legibility and recognizability of the icon.

Default value: 0

<React.Fragment>
    <PaperPlaneIcon /> {/* fillOpacity defaults to 0 */}
    <PaperPlaneIcon fillOpacity={0.25} />
    <PaperPlaneIcon fillOpacity={0.5} />
</React.Fragment>

License

XYZ Icon Set is licensed under the MIT License.

Authors

Ondřej Bárta · website · twitter

Readme

Keywords

Package Sidebar

Install

npm i xyz-icon-set-react

Weekly Downloads

2

Version

0.49.0

License

MIT

Unpacked Size

1.51 MB

Total Files

889

Last publish

Collaborators

  • bartaxyz