You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

countdown-timer-mui

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

countdown-timer-mui

``` npm i countdown-timer-mui ```

1.0.0
latest
npmnpm
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

This library is Countdown Timer

Component by MUI, @mui/material

countdown-timer-mui

Support ReactJS, NextJS

Getting started

npm i countdown-timer-mui

or

yarn add countdown-timer-mui

How to use

ReactJS

import { CountDownTimer } from "countdown-timer-mui"

NextJS

import dynamic from "next/dynamic";
const CountDownTimer = dynamic(
  () => import("countdown-timer-mui").then((mod) => mod.CountDownTimer),
  { ssr: false }
);

Example

<CountDownTimer
    display={true}
    containerStyle={{}}
    targetDate={"2023-12-01T00:00:00.000Z"}
    daysType={"d"}
    hoursType={""}
    minutesType={""}
    secondsType={""}
    timerContainerStyles={{}}
    timerFontStyles={{}}
    formatBetween={":"}
    formatBetweenStyle={{}}
/>

Attribute

Attributetypeoptionsdescription
displaybool
containerStyleobjectsx props
targetDatestringdate formatdate time format
daysType, hoursType, minutesType, secondsTypestringex. "days", "hr", "minutes", "ss"text after timer
timerContainerStylesobjectsx props
timerFontStylesobjectsx props
formatBetweenstringex. ":", "-", "/"text display between each container
formatBetweenStyleobjectsx props

Keywords

ReactJS

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts