ct-ui
Code /+/ Trust UI Components
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