Coder Social home page Coder Social logo

react-checkmark's Introduction

react-checkmark

Animated checkmark you already need for React

Screenshot

See Live Demo

Getting Started

Install the component

npm i react-checkmark

Use the component

import { Checkmark } from 'react-checkmark'

Default usage

render() {
  return ( <Checkmark /> )
}

Usage with size specified:

  • 'small' for 16px
  • 'medium' for 24px
  • 'large' for 52px
  • 'xLarge' for 72px
  • 'xxLarge' for 96px
  • or specify a valid number for pixel
render() {
  return (
    <>
      <Checkmark size='xxLarge' />
      <Checkmark size='96px' />
    </>
  )
}

Usage with color (name or hex value) specified:

render() {
  return (
    <>
      <Checkmark size='128px' color='blue' />
      <Checkmark size='256px' color='#223344'/>
    </>
  )
}

LICENCE Apache 2.0 - Created by Stanley Xu

react-checkmark's People

Contributors

johncookv avatar stanleyxu2005 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-checkmark's Issues

Custom check animation speed

Hello Stanley.
First, thanks for this wonderful library. It's been of so much use to me.
I would love to know how I can customize the animation duration for the check. Thanks.

Warning: Failed prop type: c: prop type `size` is invalid;

When using Checkmark as:
<Checkmark size="xxLarge" />
or
<Checkmark size={96} />

I get the following error:

Warning: Failed prop type: c: prop type `size` is invalid; it must be a function, usually from the `prop-types` package, but received `number`.

How to change color

is it possible to change the color of the background and the arrow color?

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.