0.0.1 β’ Published 2 years ago
camo-notifications v0.0.1
CamoNotifications
Notifications library that disguises itself in your application π₯·πΆβπ«οΈ
Check out the storybook with some examples
Features
- Adaptable - generates the perfect background color based on the selected harmony
- Customizable - use the generated colors or pass your own
- Easy to use
- Lightweight
Install
npm install camo-notifications
Usage
function Example() {
const [isOpen, setIsOpen] = useState(false)
return (
<div>
<button type='button' onClick={() => {setIsOpen(!isOpen)}}>
toggle
</button>
<Notification
id='example'
notificationType={NotificationType.COOKIE}
isOpen={isOpen}
onClose={toggle}
content='Lorem ipsum dolor sit amet, consectetur adipiscing elit' />
</div>
)
}
0.0.1
2 years ago