duct notification

duct notification

duct notification ile bildirimlerinizi belirli bir süre boyunca ekranın alt rafında gösterebilirsiniz.

duct-notification kurulumu

npm i duct-notification

Kurulumdan sonra kullanmak istediğiniz bileşene duct-notification paketini ekleyin.

import notification from 'duct-notification'

kullanıma hazır

notification({
  type : 'success',
  head : 'Information Notification',
  message : 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dicta quaerat1',
  timer : 15000,
  hideClose : true
})

Bildirimlerinizi notification fonksiyonu içerisinde gönderebilirsiniz.

Parametreler

İsim

Değer

Varsayılan Değer

type

Bildirimlerin türünü belirtir. danger, warning, success, info

info

timer

Bildirimin görüntülenme süresini milisaniye cinsinden belirler

3000

head

Bildirim kutusundaki başlığı temsil eder

empty

message

Bildirim kutusundaki Açıklayıcı metni temsil eder

required

hideClose

Bildirim alanındaki gizle düğmesinin durumunu belirler

false

Yeni arama yok