<Loader />

data/loader.svelte

"And suddenly, in this dark cabinet, I realized that the most pleasant phase was that of waiting."
D. Pentes, 824

Component Loader examples :
Using slots
component Loading demo using slots
Loading
status string
code

<Loader on:status:change={()=>{}} >
    <Icon slot="loaderLoading" icon="mdi:loading" rotate/>
    <Icon slot="loaderError" icon="mdi:alert-circle-outline"/>
    <Icon slot="loaderEmpty" icon="mdi:database-search-outline"/>
    <Icon slot="loaderSuccess" icon="clarity:success-standard-line"/>
    <div slot="loaderMessage" class="border-b pad radius-tiny border-color-palette-green">status message</div>
</Loader>
Using props
component Loading demo using props
Loading dataset
status string
code

<Loader
    status={"loading"}
    messages={{
        loading: 'Loading dataset',
        error  : 'An error occurred',
        empty  : 'Empty results',
        success: 'Success !'
      }}
    emptyIcon="mdi:database-search-outline"
    errorIcon="mdi:alert-circle-outline"
    loadingIcon="mdi:loading"
    successIcon="clarity:success-standard-line" />
Api preview :

missing