Empty

Composable empty-state layout: media, title, description, and optional actions.

✎

No sketches yet

Start a new drawing or import from your notebook.

<Empty roughness={1.5}>
  <EmptyTitle>No sketches yet</EmptyTitle>
  <EmptyDescription>...</EmptyDescription>
</Empty>

CLI install

npx doodleui-react add empty

Usage

import { Button, Empty, EmptyAction, EmptyDescription, EmptyTitle } from "doodleui-react";

<Empty>
  <EmptyTitle>No results</EmptyTitle>
  <EmptyDescription>Try a different search.</EmptyDescription>
  <EmptyAction>
    <Button size="sm">Clear filters</Button>
  </EmptyAction>
</Empty>

Props

PropTypeDefaultNotes
borderedbooleantrueSketch frame and hachure fill around the empty state.
animatebooleantrueDraw-in the frame when bordered. Overrides DoodleUIProvider. Reduced motion disables this unless the provider set forceAnimate.
roughnessnumber1.5How wobbly the stroke is. 0 is almost geometric. 3+ is messy.
seednumberprovider / randomLocks the sketch. Omit to follow SketchSeedProvider (Shuffle) or a mount-time random seed.
sketchColorstring#1f1d1aStroke color. Also tints primary/accent fills where relevant.
classNamestringundefinedPassed through to the root element.
styleCSSPropertiesundefinedPassed through to the root element.