round-count

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i round-count

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.66 kB

Total Files

5

Last publish

Collaborators

  • imsaif