/binary-clock-react

A binary clock component in React

Primary LanguageTypeScriptMIT LicenseMIT

Binary Clock React Component

Customizable binary clock component.

Example

Sample

Features

  • ~1.3 KB size.
  • Customizable styles.

Installation

npm i binary-clock-react

Usage

import { BinaryClock } from "binary-clock-react";

<BinaryClock />

Customization

{
    // pass your classname to customize the root container style
    rootClassName: <custom-class-name>,
    
    // pass your classname to customize the bulb when it's on
    bulbOnClassName: <custom-class-name>,
    
    // pass your classname to customize the bulb when it's off
    bulbOffClassName: <custom-class-name>,
}