@codeandtrust/ct-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ct-ui

Code /+/ Trust UI Components

NPM JavaScript Style Guide

Install

yarn add @codeandtrust/ct-ui

Usage

import { useState, useLayoutEffect } from "react"
import { LoadingButton } from '@codeandtrust/ct-ui'

const App = () => {
  const [isLoading, setIsLoading] = useState(false)

  const handleClick = () => {
    setIsLoading(true)
    setTimeout(() => {
      setIsLoading(false)
    }, 3000)
  }

  return <LoadingButton variant="contained" color="primary" loading={isLoading} onClick={handleClick}>Click me</LoadingButton>
}

License

MIT © jrdn91

Dependents (0)

Package Sidebar

Install

npm i @codeandtrust/ct-ui

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

13.9 kB

Total Files

11

Last publish

Collaborators

  • jordan4jc