View Source PhoenixNotif.Base (phoenix_notif v0.1.0)
Provides base components for deriving various types of notifications.
Summary
Functions
Base notification component.
Types
@type kind() :: :info | :success | :warning | :error
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:error.duration(:integer) - the time in milliseconds before the message is automatically dismissed. Defaults tonil.icon(:any) - Defaults tonil.title(:string) - Defaults tonil.message(:string) - Defaults tonil.action(:any) - Defaults tonil.component(:any) - Defaults tonil.class_fn(:any) - function to override the look of the notification. Defaults to&PhoenixNotif.Base.notification_class_fn/1.- Global attributes are accepted. the arbitrary attributes to add to the notification container.
Slots
inner_block