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 tonil.icon(:any) - Defaults tonil.title(:string) - Defaults tonil.message(:string) - Defaults tonil.action(:any) - Defaults tonil.component(:any) - An alternative component, which accepts all the attrs of current component. Defaults tonil.- Global attributes are accepted. the arbitrary attributes to add to the notification container.
Slots
inner_block