1.0.4 • Published 2 months ago

tailwind-notifications v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

TailwindCSS Notifications

notification component with tailwindcss

Install

npm install --save tailwind-notifications

Usage

Setup Environment Variables

Set the variables in .env

NEXT_PUBLIC_NOTIFICATION_STATUS = true
NEXT_PUBLIC_NOTIFICATION_OPEN = true
NEXT_PUBLIC_NOTIFICATION_START_DATE = '2023-12-01 00:00:01'
NEXT_PUBLIC_NOTIFICATION_END_DATE = '2023-12-31 23:59:59'
NEXT_PUBLIC_NOTIFICATION_TITLE = 'Lorem ipsum dolor sit amet'
NEXT_PUBLIC_NOTIFICATION_BODY = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.'
NEXT_PUBLIC_NOTIFICATION_ICON = ''

Icons: christmas / easter

Setup Context Provider

Place the notifications context wrapper in the root of the application.

import React, { Component } from 'react'
import { NotificationsProvider } from "tailwind-notifications";

export default function App({Component}) {
  return (
    <NotificationsProvider>
      <Component />
    </NotificationsProvider>
  )
}
1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

0.1.12

5 months ago

0.1.13

5 months ago

0.1.14

5 months ago

0.1.15

5 months ago

0.3.0

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.2.6

5 months ago

0.2.3

5 months ago

0.3.1

5 months ago

0.2.2

5 months ago

0.2.5

5 months ago

0.2.4

5 months ago

0.1.11

5 months ago

0.1.10

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago