react-sale-countdown

1.0.2 • Public • Published

React Sale Countdown

npm npm GitHub

DEMO

This is the demo

click Here to try demo

Installation

  • You can install react-countdown-card using npm or yarn.

    npm install react-countdown-card

In order to use react-countdown-card, you have to install react-router-dom

Description

React Countdown Card is a versatile package for creating stylish countdown timers in a card format. It's designed to make it easy to integrate countdowns into your React applications, particularly for sales, giveaways, or any time-sensitive events.

Usage

Import the CountdownCard component in your React application and use it as follows:

import React from 'react';
import {CountdownCardKit} from 'react-countdown-card';

function App() {
    const imageUrl ="https://t.ly/WIQhD";
    const endDate = "Sunday 01 October 2023, 12:00 AM";
    const title = "Fossil watch Give away";
    const description = "This is a giveaway of Fossil Watch";
  return (
    <div>
      {/* Your other content */}
      <CountdownCardKit
        imageUrl={imageUrl}
        endDate={endDate}
        title={title}
        description={description}
      />
    </div>
  );
}

export default App;

Props

  • imageUrl: URL of the image to display in the card.
  • endDate: Date and time when the countdown should end (in 12hrs format).
  • title: Title for the card.
  • description: Description or message for the card.

Author

Pankaj

Instagram Icon LinkedIn Icon

Feel free to reach out for any questions or feedback!

Dependencies (6)

Dev Dependencies (3)

Package Sidebar

Install

npm i react-sale-countdown

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

12.3 kB

Total Files

6

Last publish

Collaborators

  • itsmepankaj