3.0.3 • Published 9 years ago

apeman-react-clock v3.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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.

Links

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.0

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago