0.1.2 • Published 1 year ago

react-svg-buttons-improved v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React SVG buttons

Version

This package provides a <MorphIcon /> component used to compose available buttons, it's able to morph from whatever icon type to another one.

The <MorphIcon /> component exposes 18 icon types.

It also provides a set of button components.

Please, take a look at the demo.

Installation

npm install react-svg-buttons

Usage

import { render } from 'react-dom'
import {
    MorphIcon,
    CloseButton,
    NavButton,
    PlusButton,
} from 'react-svg-buttons'

const Demo = () => (
    <div>
        <MorphIcon type="thunderbolt" />
        <CloseButton />
        <NavButton direction="right" opened={false} />
        <PlusButton />
    </div>
)

render(<Demo />, document.getElementById('demo'))

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Original work:

Updated to support React 18.x.x:

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago