Skip to content
Shamar

EmptyState

EmptyState shows a heading (and optional description) when a region has nothing to display — useful in nested schemas and relation-heavy forms.

import { EmptyState, Section } from '@shamar/core'
Section.make('Attachments').schema([
EmptyState.make('No files yet')
.description('Upload documents after the record is created.')
.icon('inbox'),
])

EmptyState

MethodDescription
EmptyState.make(heading?)Primary heading.
.description(text)Supporting copy.
.icon(name)Optional icon (when rendered by the host).
.heading(text)Replace the heading.