-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1316 from evidence-dev/chart-ssr-loading-state
POC of an SSR Loading Skeleton for Charts
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/core-components/src/lib/unsorted/ui/ChartLoading.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script context="module"> | ||
export const evidenceInclude = true; | ||
</script> | ||
|
||
<script> | ||
import { fade } from 'svelte/transition'; | ||
export let height = '231px'; | ||
</script> | ||
|
||
<div role="status" class="animate-pulse" in:fade|local> | ||
<span class="sr-only">Loading...</span> | ||
<div | ||
class="bg-gray-200 rounded-md dark:bg-gray-400 max-w-[100%]" | ||
style="height:{height}; margin-top: 15px; margin-bottom: 31px;" | ||
/> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters