Products · Components

EmptyState

What to show where there's nothing yet, such as an empty list.

Put a button inside it to give the person a way forward.

Children: Components

Example

The EmptyState component
view.dml
<EmptyState icon="receipt" title="No payments yet" text="Payments you make will show here.">
  <Button variant="secondary">Make a payment</Button>
</EmptyState>

Props

PropTypeWhat it is
iconicon name, or one of your own icons
titlestring
textstring
padding, paddingTop, paddingStart, paddingEnd, paddingBottomspacingSpace inside its edges, all round or on one side.

Events

None.

Keep reading

On this page