1.0.4 • Published 1 year ago

tailwind-notifications v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.6

2 years ago

0.2.3

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago