Spinner
Use spinner to inform marketers that the system is retrieving or synchronizing data, that might take undetermined but short time before finishes.
Default
Copy Pug Copy HTML Open in playground Show code Hide codee-spinner
<e-spinner></e-spinner><e-spinner></e-spinner>JavaScript Copy JavaScript
Variations
Small Copy Pug Copy HTML Open in playground Show code Hide codedata-size="small"
<e-spinner data-size="small"></e-spinner><e-spinner data-size="small"></e-spinner>JavaScript Copy JavaScript
Medium Copy Pug Copy HTML Open in playground Show code Hide codedata-size="medium"
<e-spinner data-size="medium"></e-spinner><e-spinner data-size="medium"></e-spinner>JavaScript Copy JavaScript
Large Copy Pug Copy HTML Open in playground Show code Hide codedata-size="large"
<e-spinner data-size="large"></e-spinner><e-spinner data-size="large"></e-spinner>JavaScript Copy JavaScript
Table Copy Pug Copy HTML Open in playground Show code Hide codedata-size="table"
<e-icon icon="pencil" type="table"></e-icon>
<e-spinner data-size="table"></e-spinner>
<e-icon icon="trash-o" type="table"></e-icon><e-icon icon="pencil" type="table"></e-icon>
<e-spinner data-size="table"></e-spinner>
<e-icon icon="trash-o" type="table"></e-icon>JavaScript Copy JavaScript
With text Copy Pug Copy HTML Open in playground Show code Hide codedata-text="Loading..."
<e-spinner data-text="Loading..."></e-spinner><e-spinner data-text="Loading..."></e-spinner>JavaScript Copy JavaScript
Fullscreen Copy Pug Copy HTML Open in playground Show code Hide codedata-fullscreen="true"
<div style="position: relative; height: 300px;">
<e-spinner data-fullscreen="true"></e-spinner>
</div><div style="position: relative; height: 300px;">
<e-spinner data-fullscreen="true"></e-spinner>
</div>JavaScript Copy JavaScript
API Reference
Properties
| Name | Description | Type | Required | Default value |
|---|---|---|---|---|
| data-text | Text label | string | ||
| data-size | Large, small or table size | string | large | |
| data-fullscreen | Horizontal and Vertical centered position | boolean | false |
Spinner
Use spinner to inform marketers that the system is retrieving or synchronizing data, that might take undetermined but short time before finishes.
Best practices
Spinners should:
- Be positioned to indicate where the result of the progress will be placed. Think about it as a placeholder.
- Have a steady animation so the user knows that something is happening.
- Be paired with a label next to the indicator that gives extra context.
- Give a feeling of continuity when multiple data is being processed in a row. To achieve this, provide a spinner one by one sequentially for each piece of data.
- Be used when the operation falls around these keywords:
- Fetching...
- Uploading...
- Signing in...
- Connecting...
Try to avoid:
- Using spinner to indicate a progress which takes a determined length of time to be completed. Use a Progress Bar instead.
- Unnecessarily restrain marketers while a long computation is taking place. Let them finish other tasks without interrupting the loading. When the process is finished, send them a notification with a link to the affected area.
- Visually overwhelm the screen by putting multiple spinners in the same content box. As a rule of thumb don’t let the user see more than four spinners on the screen at the same time.
- Spinners when the operation falls around these keywords:
- Loading...
- Retrieving...
- Installing...
Content guidelines
Spinner labels should:
- Start with a capital letter.
- Give extra context if it helps the user understand the situation better.
- Be short and to the point.
- Use present continuous form.