Job board

Empty state

An empty state fills a region that has nothing to show and says what to do about it: a graphic, a Title text, a Description text and an optional action. Breakpoint (md, sm) matches the page.

Design
Finished
Level
Draft
Audit
1 open findingat the audit of
Last changed

Preview

Empty state, default variant as designedEmpty state, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Usage

Do

  • Use where a list or a page section came back empty — a search with no results (folder), a company with no active jobs (switch), a posting with no description (earth) — and where an action completed and left nothing else to show, as the contact form's "Message sent!" (cursor) does
  • Write Title text as the situation and Description text as the way out
  • Make the button the way out — "Clear search", "Show expired jobs", "Send another"

Don't

  • Use for an error: the library has no error state, so add one rather than reusing this
  • Reuse a graphic another emptiness already uses with a different meaning
  • Let Description text restate the title

Behaviour

  • Button reveals the action; turn it off when the region offers nothing to do, as the sent message inside the contact modal does
  • Graphic swaps the illustration between the five on the ❖ Graphic page

Composition

  • Contains a graphic from the ❖ Graphic page, supplied through Graphic; the default is switch
  • Contains Button (sm, Secondary), revealed by the Button boolean

Dependencies in Figma

Built fromButton — brings SpinnerButtonGraphic/switchswitchEmpty stateEmpty state

Built from

Level checks

Draft · next level blocked by Errors open

The ladder's checks for Empty state
CheckLevelResult
AuditedReadyPasses
No errors openReady1 error open
Has a descriptionReadyPasses
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStablePasses
Code gen notes writtenStableChecked at the next audit
Auto layout throughoutStableChecked at the next audit
Matches the designStablePasses

Anatomy

1234
Every option switched on: what the component can contain, not how it is usually used
#PartShownComponent
1switchAlwaysswitch
2TitleAlways–
3TextAlways–
4ButtonBy ButtonButton

Properties

Empty state: each property, its type, values and default
PropertyTypeValuesDefault
BreakpointVariant
mdsm
md
Title textTextany textTitle
Description textTextany textDescription
ButtonBooleantrue, falsetrue
1 instance swap (icons and parts a designer can replace)
  • Graphic

Implementation

What code builds differently from the drawing, and why
FigmaCodeWhy
Container, inside strokeborder with box-sizing: border-box and padding less the stroke, or box-shadow: inset 0 0 0 <width>Figma's inside stroke takes no space; a border does.
Breakpoint: md, smMedia or container queriesOne component responds to its width; the variants are the widths drawn.

Changes on 23 Nov
ChangeTypeFigma filesCodeDetails
Container: fillRestyledMinorMinor

Changes on 4 Nov
ChangeTypeFigma filesCodeDetails
Texts: height · 2 variantsRestyledBreakingMinor
Text: heightRestyledBreakingMinor
Button: widthRestyledBreakingMinor
Button: position · 3 variantsRestyledBreakingMinor
Container: widthRestyledBreakingMinor
Content: widthRestyledBreakingMinor
Content: heightRestyledBreakingMinor
Content: positionRestyledBreakingMinor
Label: widthRestyledBreakingMinor
Label: heightRestyledBreakingMinor
Empty state: height · 4 variantsRestyledBreakingMinor
Title: heightRestyledBreakingMinor
Text: positionRestyledBreakingMinor
Title: text styleRestyledMinorMinor
Text: text styleRestyledMinorMinor
Label: text styleRestyledMinorMinor
Text: listSpacingRestyledMinorMinor
Text: line heightRestyledMinorMinor
Text: letter spacingRestyledMinorMinor
Label: line heightRestyledMinorMinor
Label: letter spacingRestyledMinorMinor

Changes on 13 Oct
ChangeTypeFigma filesCodeDetails
Layer ContainerAddedMinorPatch
Layer ContentAddedMinorPatch
Layer LabelAddedMinorPatch
Button: overridesRestyledMinorMinor

Changes on 27 Sept
ChangeTypeFigma filesCodeDetails
Title: line heightRestyledMinorMinor

Changes on 23 Sept
ChangeTypeFigma filesCodeDetails
Title: line heightRestyledMinorMinor

Changes on 20 Sept
ChangeTypeFigma filesCodeDetails
Its values movedRestyledMinorMinor

Changes on 19 Sept
ChangeTypeFigma filesCodeDetails
DescriptionDocsPatchPatch

Changes on 2 Sept
ChangeTypeFigma filesCodeDetails
Property ButtonAddedMinorMinor
Layer SwitchRenamedPatchMinor
VariantsNot gradedNot gradedNot graded

Changes on 25 Aug
ChangeTypeFigma filesCodeDetails
Property BreakpointAddedMinorMinor
VariantsNot gradedNot gradedNot graded

Changes on 21 Aug
ChangeTypeFigma filesCodeDetails
Nested component renamed (1 layer)Not gradedNot gradedNot graded
Button: propsRestyledMinorMinor
ComponentAddedMinorMinor