View Source Shino.Notification.Base (shino v0.2.0-alpha.1)

Provides base components for deriving various types of notifications.

Summary

Functions

Base notification component.

Types

@type kind() :: :info | :success | :warning | :critical

Functions

Base notification component.

Based on the look and feel of Sonner.

Attributes

  • id (:string) (required) - the DOM id of notification.
  • group_id (:string) (required) - the DOM id of notification group.
  • type (:atom) (required) - the type of notification.Must be one of :flash, :"lv-flash", or :"lv-toast".
  • kind (:atom) (required) - the kind of notification message.Must be one of :info, :success, :warning, or :critical.
  • duration (:integer) - the time in milliseconds before the message is automatically dismissed. Defaults to nil.
  • icon (:any) - Defaults to nil.
  • title (:string) - Defaults to nil.
  • message (:string) - Defaults to nil.
  • action (:any) - Defaults to nil.
  • component (:any) - An alternative component, which accepts all the attrs of current component. Defaults to nil.
  • Global attributes are accepted. the arbitrary attributes to add to the notification container.

Slots

  • inner_block