1.0.1 • Published 7 months ago
round-count v1.0.1
round-count
A lightweight countdown component for React.
Installation
You can install the package using npm:
npm install round-count
Or with yarn:
yarn add round-count
Demo
You can view a live demo of the round-count
component here.
Usage
Here is a simple example of how to use the round-count
component in your React application:
import { Count } from "round-count";
export default function App() {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
<Count time={30} width={220} />
</div>
);
}
export default App;
Props
The CountdownButton
component accepts the following props:
Prop | Type | Description |
---|---|---|
time | number | The initial countdown time in seconds. |
width | number | Circle Radius |
License
This project is licensed under the MIT License.