reactionic-icons

1.0.0 • Public • Published

reactionic-icons

Badges

Icon React helper components for Reactionic.

This will take care of adding aria-label and aria-hidden for you.

Installing

yarn add reactionic-icons

Usage

<Icon
  onClick={() => {}}
  defaultIcon="fa-icon"
  icons: shape({
    android: "fa-android",
    ios: "fa-ios",
    web: "fa-internet",
  }),
  hidden={false}
  label="text"
/>

If an icon is hidden={false}, then it must have a label.

By default icons are hidden={true} for screenreaders.

You can pass any event callbacks and additional props. They will be applied to the <i> that is created.

Readme

Keywords

Package Sidebar

Install

npm i reactionic-icons

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • idmontie