Empty state

Say what is empty in the list's own terms and offer the way out.

Helper
empty_state(
  title = nil,
  description: nil,
  icon: nil,
  size: :md,        # or :sm
  bordered: false
) do |e|
  e.with_action { … }
end

Just a sentence

The smallest form, for places where the context already explains itself.

Nenhuma nota neste filtro.

Custom text and icon

The title says what is empty ("Nenhuma quest concluída ainda"), the description says why or what will fill it. Pick a Tabler icon for the thing that is missing, not a generic one. Any extra markup in the block goes under the description.

Nenhuma quest concluída ainda

Quando você concluir uma quest, ela aparece aqui com a data de conclusão.

With actions

First use and filters that match nothing deserve a way out: one primary action, at most one secondary. bordered: true draws a dashed outline for an empty area inside a page.

Cadastre a primeira empresa

Com o certificado digital da empresa, as notas emitidas e recebidas são baixadas sozinhas.

Small

size: :sm for cards and side panels.

Próximos dias

Nada agendado

As missões com data aparecem aqui.

Options

OptionWhat it does
titleWhat is empty, as a short sentence
descriptionWhy it is empty or what will fill it
iconTabler icon of the missing thing, shown in a soft circle
size:md (pages, tables) or :sm (cards, side panels)
borderedDashed outline for an empty area inside a page

Slots

SlotWhat goes in it
actionButtons under the text; the first one primary