A customizable button with CSS animations, created using CSS-in-JS.
To install the package, run:
npm install buttons-package-ankitkicode
Here's how to use the Button component in a React project:
- Import the Button Component
Import the Button component from the package:
import {Button} from 'buttons-package-ankitkicode';
- Use the Button Component
Use the Button component in your React JSX. Customize the button's text and animation speed via props:
import {Button} from 'buttons-package-ankitkicode';
const App = () => {
return (
<div>
<Button text="Go" speed={1000} />
</div>
);
};
Here's how to use the Button component in a React project:
- Import the Button Component
Import the Button component from the package:
import { TextCircleButton } from 'buttons-package-ankitkicode';
- Use the Button Component
Use the Button component in your React JSX. Customize the button's text and animation speed via props:
import {TextCircleButton } from 'buttons-package-ankitkicode';
const App = () => {
return (
<div>
<TextCircleButton text="Write Text Here.." />
</div>
)
}
export default App
Here's how to use the Button component in a React project:
- Import the Button Component
Import the Button component from the package:
import { BestiaButton } from 'buttons-package-ankitkicode';
- Use the Button Component
Use the Button component in your React JSX. Customize the button's text and animation speed via props:
import { BestiaButton } from 'buttons-package-ankitkicode';
const App = () => {
return (
<div>
<BestiaButton text=" Text " />
</div>
)
}
export default App
Here's how to use the Button component in a React project:
- Import the Button Component
Import the Button component from the package:
import { SkollButton } from 'buttons-package-ankitkicode';
- Use the Button Component
Use the Button component in your React JSX. Customize the button's text and animation speed via props:
import {SkollButton } from 'buttons-package-ankitkicode';
const App = () => {
return (
<div>
<SkollButton text="Text Here" />
</div>
)
}
export default App
Here's how to use the Button component in a React project:
- Import the Button Component
Import the Button component from the package:
import { GreipButton } from 'buttons-package-ankitkicode';
- Use the Button Component
Use the Button component in your React JSX. Customize the button's text and animation speed via props:
import {GreipButton } from 'buttons-package-ankitkicode';
const App = () => {
return (
<div>
<GreipButton text="Text Here.." />
</div>
)
}
export default App
Prop Name | Type | Description | Required |
---|---|---|---|
text |
string | The text to display inside the button. | Yes |
speed |
number | The speed of the progress animation in milliseconds. | Yes |
Prop Name | Type | Description | Required |
---|---|---|---|
text |
string | The text to display inside the button. | Yes |
direction |
string | The direction of the text animation inside the button. | No |
Prop Name | Type | Description | Required |
---|---|---|---|
text |
string | The text to display inside the button. | Yes |
Prop Name | Type | Description | Required |
---|---|---|---|
text |
string | The text to display inside the button. | Yes |
Prop Name | Type | Description | Required |
---|---|---|---|
text |
string | The text to display inside the button. | Yes |
This package is licensed under the ISC License. See the LICENSE file for more details
Ankit Jatav Feel free to reach out if you have any questions or need further assistance!