0.0.1 β€’ Published 2 years ago

camo-notifications v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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>
      )
}