Data display

Empty

A centered message for a space with nothing to show yet, with an optional icon and next step.

Class nameTypeDescription
emptyplf:emptyComponentAn empty state
empty-headerplf:empty-headerPartThe media, title and description
empty-mediaplf:empty-mediaPartThe icon tile
empty-iconplf:empty-iconPartAn SVG icon; an icon class there doesn't need it
empty-titleplf:empty-titlePartThe title
empty-descriptionplf:empty-descriptionPartThe description
empty-contentplf:empty-contentPartThe next step, such as a button
empty-outlineplf:empty-outlineStyleA dashed border

No projects yet

Create your first project to get started.

No results found

Try a different search term.

Inside a card

Inside a Card, lower both paddings so they do not add up.

Notifications

You're all caught up

New notifications will appear here.

React

Empty from @pelatform/react renders this markup from its props, and each part is a component of its own.

Prop Values Default
variant outline, a dashed border No border

The parts:

Part Element
EmptyHeader A div with empty-header
EmptyMedia A div with empty-media
EmptyTitle An h3 with empty-title, or another heading with level
EmptyDescription A p with empty-description
EmptyContent A div with empty-content

Other props are the element’s own, className and ref included.

CSS variables

Override on a root or on a single empty state.

Variable Default
--plf-empty-padding Space 6 (24px)
--plf-empty-gap Space 4 (16px), between the header and content and inside the content
--plf-empty-radius Extra large radius (12px)
--plf-empty-bg transparent
--plf-empty-color Text; the title and icon inherit it
--plf-empty-border Transparent; --plf-color-border-subtle with empty-outline. The border is always dashed
--plf-empty-description-color Muted text
--plf-empty-media-bg Muted surface
--plf-empty-icon-size Space 6 (24px)
--plf-empty-content-max-width 24rem, for the header and content

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons