Skip to Content
BlocksApp shell and pages

States

Loading, refreshing, empty and error states that keep the block's layout.

How blocks look while they load, refresh, come back empty or fail.

Skeleton

Placeholders sized to match the loaded stats, so nothing shifts when the data arrives.

npx shadcn add @dashboardblocks/states-01

Overview

The last 30 days, compared with the 30 days before.

Loading
Loading
Loading

Refresh

A chart that stays in place, dimmed, while it refreshes.

npx shadcn add @dashboardblocks/states-02

Revenue

Revenue each day in September, against the daily average.

Loading

Empty

A filtered table with no matching rows that says why it's empty and offers a way out.

npx shadcn add @dashboardblocks/states-03

Orders

0 of 5 orders with status Refunded and region Asia Pacific.

  • Status:Refunded
  • Region:Asia Pacific

No orders match these filters

Remove a filter, or clear them all to see every order.

Error

A block whose request fails, saying it couldn't load in place of the number while the chart keeps its space.

npx shadcn add @dashboardblocks/states-04

Signups

New accounts each week for the last 8 weeks, against the weekly average.

Loading

On this page