24 lines
711 B
Plaintext
24 lines
711 B
Plaintext
component ToastNotifications {
|
|
props {
|
|
@event add = function
|
|
@event dismiss = function
|
|
@event clear = function
|
|
@event action = function
|
|
size = "default"
|
|
color = "primary"
|
|
title = "Toast Notifications"
|
|
description = ""
|
|
items = []
|
|
variant = "default"
|
|
class = ""
|
|
}
|
|
view {
|
|
<section class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--toast-notifications wire-next--variant-{variant} {class}">
|
|
{#if title}<strong>{title}</strong>{/if}
|
|
{#if description}<p>{description}</p>{/if}
|
|
{#if items}<div class="wire-next__items">{#each items as item}<span>{item.label}</span>{/each}</div>{/if}
|
|
<slot />
|
|
</section>
|
|
}
|
|
}
|