This is a reusable buttons component for React that supports different types of buttons. You can easily switch between button types by changing the classname.
You can install this package using npm:
npm install animated-buttons
There is 5 types of Buttons Components available
<Button/>
<BlobButton/>
<FlushButton/>
<HoverButton/>
<DeleteButton/>
To use this component in your React app, simply import it and render it:
import React from 'react';
import { Button } from 'animated-buttons';
function App() {
return (
<div>
<Button/>
</div>
);
}
<Button
className={}
style={}
type={}
value={}
isDisabled={}
onPress={}
/>
Props | Datatype |
---|---|
className | String |
style | string |
type | string |
value | string |
isDisabled | boolean |
onPress | function |
Contributions are always welcome! If you have an idea for a new feature or find a bug, please open an issue or submit a pull request.
This package is licensed under the MIT License.
This package was inspired by many other open source React components. Thank you to all the developers who have contributed to the React community!