custom-material-ui
Custom animated buttons using material-ui icons
Install
npm install --save custom-material-ui
Usage
import React from 'react'
import {
AddButtonRotating,
RemoveButtonBin,
LogoutButton,
CloseButton,
EditButton,
RefreshButton,
FileSelectorButton,
DoneButton,
ChangePasswordButton,
DownloadButton,
UploadButton,
VisibilityToggle,
PublicToggle,
ArrowToggle,
EnabledToggle
} from '@idot-digital/custom-material-ui'
import '@idot-digital/custom-material-ui/dist/index.css'
const Example = () => {
const [active, setActive] = React.useState(false)
return (
<React.Fragment>
<AddButtonRotating onClick={() => console.log('click')}>
Some content
</AddButtonRotating>
<VisibilityToggle
onClick={(active) => setActive(() => active)}
active={active}
text='Visibility'
/>
</React.Fragment>
)
}
License
UNLICENSED © @idot-digital