New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-common-use-components

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-common-use-components

A library of commonly used React components

  • 0.1.8
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-common-use-components npm npm

All Contributors

A library of commonly used React components,Contains the following components: FlexBox, CountDown,InfiniteScroll,Modal,ToastProvider,Toast,Uploader

Install

  npm install --save react-common-use-components

  or

  yarn add react-common-use-components

  // in code ES6
  import InfiniteScroll from 'react-common-use-components';
  // or commonjs
  var InfiniteScroll = require('react-common-use-components');

Using

import React, {useState} from 'react';
import FlexBox from "react-common-use-components";

const YourComponent = () => {
   const [startTimer, setStartTimer] = useState(false)
   const onClick = () => {
     setStartTimer(true)
   }
  return (
         <div>
           <CountDown style={{
             width: "8rem",
             height: "1.25rem",
             borderRadius: "0.375rem",
             textAlign: 'center',
             lineHeight: "1.25rem",
             fontsize:"1.25rem !important",
             marginRight:"0.25rem",
             backgroundColor:"#F8F8F8",
             color:'#3370DA',
             cursor:"pointer"
           }} onClick={onClick}  status={startTimer}/>
         </div>
  );
};

export default YourComponent;

CountDown props

nametypedescription
startTimerbooleantimer switch
onClickfunctioncallback function
styleobjectcountdown style

LICENSE

MIT

Keywords

FAQs

Package last updated on 17 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc