1.0.0 • Published 3 years ago

@wniemiec-component-react/remaining-time v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm.io

❇ Introduction

React component that displays the time remaining until a certain hour, minute and second.

🖼 Gallery

❓ How to use

  1. Install the component
$ npm install --save @wniemiec-component-react/remaining-time
  1. Import the component
import RemainingTime from '@wniemiec-component-react/remaining-time';
  1. Use it
[...]

import React from 'react';

[...]

<RemainingTime
  hours={12}
  minutes={59}
  seconds={0}
/>

[...]

📖 Documentation

PropertyTypeDescriptionDefault
hoursnumberHour23
minutesnumberMinute59
secondsnumberSecond59
fgColorstringText color"#000000"
styleobjectCustom stylenull

🚩 Changelog

Details about each version are documented in the releases section.

🤝 Contribute!

See the documentation on how you can contribute to the project here.

📁 Files

/

NameTypeDescription
docsDirectoryDocumentation files
srcDirectorySource files