Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

EmptyState <pm-empty-state>

Empty state: what to do when there is nothing to show yet.

Full screen
New project Clear search

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/button'; import '@prismora/elements/empty-state'; import '@prismora/elements/icon'; import { registerIcons } from '@prismora/elements/icon'; import { folder, plus, search } from '@prismora/icons'; registerIcons([folder, plus, search]); </script> <pm-empty-state heading="No projects yet" description="Create your first project to get started." icon="folder" bordered> <pm-button icon-start="plus">New project</pm-button> </pm-empty-state> <pm-empty-state heading="No results" description="Nothing matches “quartz”. Try another word."> <pm-icon slot="icon" name="search"></pm-icon> <pm-button variant="outline" tone="neutral">Clear search</pm-button> </pm-empty-state>

Attributes

AttributeTypeDefaultDescription
iconstring—Registered icon name (see registerIcons); an icon slot overrides it.
headingstring—Title text.
heading-level
prop: headingLevel
number—Heading level for the document outline (default 2).
descriptionstring—Supporting text under the title.
borderedbooleanfalseDashed outline (drop zones, empty panels).

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.

Slots

SlotDescription
iconIllustration or icon.
(default)Actions (buttons).

Used in templates

Overview dashboardTraffic analyticsOrdersInboxTeam chatNotificationsProject boardTeam and rolesProduct pageShopping cartChangelogHelp centreAppointment booking