Git Product home page Git Product logo

react-digital-number's Introduction

react-digital-number

A react component to show digital number

Demo: codepen | src example

Use and Setup

npm install --save react-digital-number

Demo.js

import DigitalNumber from 'react-digital-number'

const Demo = props => (
  <div>
    <DigitalNumber 
       nums={nums}  // nums is the number your wanna show (defualt '123'
       color:'#FF0000' // the active line color of number
       unActiveColor: '#22221e' // the unactive line color of number
       backgroundColor: '#000' // digital number container's background color
       transform 
       transformDuration={600}     
    />
  </div>
)

Documentation

Name Description Type Default
nums show value String '123'
color the active line color of number String '#FF0000'
unActiveColor the unActive line color of number String '#22221e'
backgroundColor digital number container's background color String '#000'
width digital container's width String '100%'
height digital container's height String '100%'
transition digital container's transition String 'none'
transform digital number transform 0 to value Boolean false
transformDuration the duration of transform Number 600

Image text

react-digital-number's People

Contributors

dependabot[bot] avatar fredxingxing avatar

Stargazers

 avatar

react-digital-number's Issues

Even After Installing the package the it's giving me the error saying Module not found!

I have been working on the latest React project and wanted to use this package, but after installing I got the error saying the module doesn't exist and I did check the node_modules as well package.json the package was installed properly. I have used yarn and didn't find any error while installing the package.

I have recreated the same issue on CodeSandBox and here is the Link https://codesandbox.io/s/jolly-fire-mm2zg?file=/src/App.js

Please check!!

I really want this package to work.

Thank you!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.