A lightweight countdown component for React.
You can install the package using npm:
npm install round-count
Or with yarn:
yarn add round-count
You can view a live demo of the round-count
component here.
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;
The CountdownButton
component accepts the following props:
Prop | Type | Description |
---|---|---|
time |
number |
The initial countdown time in seconds. |
width |
number |
Circle Radius |
This project is licensed under the MIT License.