AlessandroRoic / CamoNotifications

React notifications library that disguises itself in your application 🥷😶‍🌫️

Home Page:https://alessandroroic.github.io/CamoNotifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CamoNotifications

camo-notifications

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

About

React notifications library that disguises itself in your application 🥷😶‍🌫️

https://alessandroroic.github.io/CamoNotifications

License:Apache License 2.0


Languages

Language:TypeScript 89.3%Language:JavaScript 8.6%Language:HTML 1.5%Language:CSS 0.6%