Skip to content

feat: Empty state component

Sam Beckham requested to merge 64-add-empty-state into master

This adds an empty state component that borrows from the current codebase for styling. Following the current guidelines in the design system.

There's a bit of logic inside this component that allows us to follow the design system rules without any user input.

  1. It will only render a secondary button if a primary button is also present
  2. If the description breaks on to two lines, it becomes left-aligned
  3. If the title breaks on to two lines, it becomes left aligned and also left aligns the description, regardless of its length.

image image image

Closes #64 (closed)

Edited by Sam Beckham

Merge request reports