Skip to main content

EmptyState

import { EmptyState } from "@study/ui"

Result
Loading...
Live Editor
<EmptyState
  illustration="karten"
  title="No flashcards yet"
  actions={<>
    <Button variant="primary" icon="plus">Create deck</Button>
    <Button variant="soft" tone="gelb" icon="claude">Create from the script with Claude</Button>
  </>}
>
  Create a deck and write the first cards – or let Claude create them from your script.
</EmptyState>

Variants and states​

Light

All done

Nothing else is due today.

No results

Try another word.

Dark

All done

Nothing else is due today.

No results

Try another word.

When to use​

No files yet

✓ DoSays why it is empty and offers the next step.

No data.

✗ Don'tOnly “No data” – and then?

More under Patterns › Empty states.

Props​

PropTypeDefaultMeaning
title *ReactNode–
actionsReactNode–The ways to fill it, as `Button`s; the first is the main one.
childrenReactNode–One or two sentences: why it is empty and what fills it.
classNamestring–
illustrationenum–A scene that fits what is missing.
size"sm" | "md"md
variant"dashed" | "plain"dasheddashed – a place to fill, inside a page; plain – a whole page with nothing yet.

Accessibility​

  • The title is an h2; the illustration is decoration.