ChartLoader
Marks that glide onto your real line, then the line draws in. Hold it and watch the field become the chart.
Hold to load
Skeleton loaders that hold the shape of your content, then become it.
Revenue by day
USD, example dataCouldn’t load revenue. Check the connection and try again.
Largest invoices
Top 4 of 104| Invoice | Customer | Project | Amount | Status |
|---|---|---|---|---|
| INV-2071 | João Pereira | Annual report | $4,120.00 | Paid |
| INV-2084 | Clara Mendes | Trade show stand | $3,400.00 | Overdue |
| INV-2093 | Marta Lopes | Spring catalogue | $2,480.00 | Paid |
| INV-2077 | Tomás Silva | Website audit | $2,115.50 | Sent |
Invoices will show here once the connection is back.
Example dataShowing the last 30 days.
Three calm dots hold the reply’s place in its bubble, then unroll into its lines when it arrives. Hold to keep Inês typing, and let go to deliver her answer; or write to her in the inbox.
Press and hold to send a reply and keep Inês typing. Let go to deliver her answer.
dotquilt-region · dotquilt-typing-dots · dotquilt-skeleton-text
Hi! The invoice for the second phase says October 29. Could it be due on November 5 instead?
Of course. I’ve moved the due date to November 5.
Thank you. I’ll pay it this week.
A new filter is a new set of rows, so the table returns to its placeholder, shaped like the rows on their way, and each cell’s marks gather into its text. The column heads stay put. Turning a page keeps the rows readable while the next ones load.
Press and hold to keep the invoices loading. Let go to deliver them.
dotquilt-region · dotquilt-table-loader
| Invoice | Customer | Project | Issued | Amount | Status |
|---|---|---|---|---|---|
| INV-2093 | Marta Lopes | Spring catalogue | Nov 19 | $2,480.00 | Paid |
| INV-2092 | Sofia Martins | Newsletter | Nov 19 | $780.00 | Open |
| INV-2091 | Ana Ribeiro | Logo refresh | Nov 18 | $1,240.00 | Open |
| INV-2089 | Inês Costa | Phase two layouts | Nov 16 | $960.00 | Paid |
| INV-2087 | Duarte Faria | Label design | Nov 13 | $1,615.00 | Overdue |
While an update loads, one row of marks rests just above the feed and the glow passes along it once. Nothing below it moves or hides, so the feed stays readable the whole time. Hold to keep it refreshing, and let go to bring the new items in.
Press and hold to keep the feed refreshing. Let go to bring in the new items.
dotquilt-region state="refreshing"
A number, a chart, a table and a reply all take their own time. Each loader holds the shape of what it stands for. Press and hold a tile to keep it waiting, then let go to deliver its data.
Press and hold, or hold Space or Enter, to keep this example loading. Let go to deliver its data.
| Northwind | $4,200 | Paid |
| Acme Labs | $1,870 | Sent |
| Globex | $9,640 | Due |
Example data.
When your data lands, the marks don't vanish. They travel to its real shape: each line grows or shrinks to the length of your text, and the circle becomes the avatar. Then your content wipes in as they leave.
Slow it down, then hold and let go to follow each part.
Press and hold to keep the message loading. Let go to watch it hand over.
The marks start in a slate that sits beside any text, with a soft glow drifting through. Change the shape, the colour, the size or the pace, and take the CSS with you.
Twelve weeks of steady growth. The autumn launch carried the last month, and refunds stayed low.
Each claim below comes with its proof. Press and hold the first three; the rest are the lines of code they take.
The glow drifts for four seconds, then rests. A handoff takes about a second on long eased curves, and never snaps at the end. Hold past four seconds to see it rest.
The quarterly report is ready to review.
Press and hold to keep the note loading. Its glow drifts for four seconds, then rests. Let go to deliver it.
While a region loads, its content is inert and hidden from screen readers. Hold it loading: the button inside drops out of reach, so a click does nothing and Tab skips it.
Press and hold to keep the invoice loading. Let go to deliver it.
With reduced motion set, or a pause on the page, the marks hold still and the content swaps in at once. Pause it here, then hold and let go.
Press and hold to keep the figure loading. Let go to deliver it.
Placeholders are in the first HTML, at the size of your content, so nothing jumps when JavaScript arrives.
import { renderStatic } from 'dotquilt/server';
renderStatic({
kind: 'region',
state: 'pending',
label: 'Revenue',
placeholder: { kind: 'skeleton-text', lines: 2 },
});No inline style attributes. Allow the stylesheets with a nonce, with hashes, or serve them as files.
// Inline, with your nonce:
stylePolicy: { mode: 'inline', nonce }
// Or as a file:
stylePolicy: { mode: 'external', href: '/dotquilt.css' }Each component has its own entry point, so a page ships just the loaders it shows. React, Vue, Svelte, Angular and plain HTML all work.
import { registerChartLoader } from 'dotquilt/chart';
import { registerLoadingRegion } from 'dotquilt/region';
registerChartLoader();
registerLoadingRegion();Or let your coding assistant do it. One prompt reads your project, asks a few questions, then adds Dotquilt one place at a time and checks its work.
import { LoadingRegion, SkeletonText } from '@dotquilt/react';
export function Summary({ data }: { data: Revenue | null }) { return ( <LoadingRegion aria-label="Revenue" state={data ? 'ready' : 'pending'} placeholder={<SkeletonText lines={3} />} > {data && <RevenueCard data={data} />} </LoadingRegion> );}<script setup lang="ts">import { LoadingRegion, SkeletonText } from '@dotquilt/vue';
defineProps<{ data: Revenue | null }>();</script>
<template> <LoadingRegion aria-label="Revenue" :state="data ? 'ready' : 'pending'"> <template #placeholder> <SkeletonText :lines="3" /> </template> <RevenueCard v-if="data" :data="data" /> </LoadingRegion></template><script lang="ts"> import { LoadingRegion, SkeletonText } from '@dotquilt/svelte';
let { data }: { data: Revenue | null } = $props();</script>
<LoadingRegion aria-label="Revenue" state={data ? 'ready' : 'pending'}> {#snippet placeholder()} <SkeletonText lines={3} /> {/snippet} {#if data} <RevenueCard {data} /> {/if}</LoadingRegion>import { Component, input } from '@angular/core';import { DotquiltPlaceholder, LoadingRegion, SkeletonText } from '@dotquilt/angular';
@Component({ selector: 'app-summary', imports: [DotquiltPlaceholder, LoadingRegion, SkeletonText, RevenueCard], template: ` <dotquilt-region aria-label="Revenue" [state]="data() ? 'ready' : 'pending'"> <div dotquiltPlaceholder><dotquilt-skeleton-text [lines]="3" /></div> @if (data(); as revenue) { <app-revenue-card [data]="revenue" /> } </dotquilt-region> `,})export class Summary { readonly data = input<Revenue | null>(null);}<dotquilt-region state="pending" aria-label="Revenue"> <dotquilt-skeleton-text slot="placeholder" lines="3"></dotquilt-skeleton-text> <article>…</article></dotquilt-region>
<script type="module"> import { registerLoadingRegion } from 'dotquilt/region'; import { registerSkeletonText } from 'dotquilt/skeleton'; registerLoadingRegion(); registerSkeletonText();
const region = document.querySelector('dotquilt-region'); const data = await fetch('/api/revenue').then((r) => r.json()); // …fill in your content, then: region.update({ state: 'ready' });</script>Start with a skeleton. Add the rest when your screens need them.