Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

apeman-react-clock

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apeman-react-clock

apeman react package for clock components.

latest
Source
npmnpm
Version
3.0.3
Version published
Maintainers
1
Created
Source

apeman-react-clock

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for clock components.

Installation

$ npm install apeman-react-clock --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {ApAnalogClock, ApAnalogClockStyle} from 'apeman-react-clock'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApAnalogClockStyle scoped />
        <ApAnalogClock />
      </div>
    )
  }
})

Components

ApAnalogClockHand

Props

NameTypeDefaultDescription
anglenumber0
widthnumber24
heightRatenumber1

ApAnalogClockLetter

Props

NameTypeDefaultDescription
anglenumber0
letterstring''

ApAnalogClockStyle

Props

NameTypeDefaultDescription
styleobject{}
widthnumber320
heightnumber240
colorstring'#333'
accentColorstring'#F33'
backgroundColorstring'#FFF'

ApAnalogClock

Props

NameTypeDefaultDescription
boardLettersarray'12,1,2,3,4,5,6,7,8,9,10,11'.split(',')

ApClockStyle

Props

NameTypeDefaultDescription
styleobject{}

ApClock

Props

NameTypeDefaultDescription

ApDigitalClockMainDisplay

Props

NameTypeDefaultDescription
hoursstring
minutesstring
secondsstring
fontSizenumber
onSizeChangefunc

ApDigitalClockStyle

Props

NameTypeDefaultDescription
styleobject{}
widthnumber340
heightnumber240
colorstring'#333'
backgroundColorstring'#FFF'

ApDigitalClockSubDisplay

Props

NameTypeDefaultDescription
daystring
fontSizenumber
widthnumber

ApDigitalClock

Props

NameTypeDefaultDescription
showSecondsbooltrue

License

This software is released under the MIT License.

Keywords

React

FAQs

Package last updated on 11 Aug 2016

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