meilisearch-admin/app/components/toast.hbs
Stanislav Romanov 0a3fa41208 Add danger toast
2022-09-21 14:11:29 +03:00

20 lines
519 B
Handlebars

{{#in-element this.toaster.destinationElement insertBefore=null}}
<div
class='absolute border rounded shadow-sm'
role='alert'
style={{this.style}}
{{did-insert this.didInsert}}
...attributes
>
<div class='p-4'>
{{yield (hash invokeOnClose=this.invokeOnClose)}}
</div>
{{#if @autoClose}}
<ProgressBar
@duration={{this.autoCloseDuration}}
@onFinish={{this.invokeOnClose}}
class={{@closeIndicatorClass}}
/>
{{/if}}
</div>
{{/in-element}}