Skip to content
Layout

EmptyState

The dashed box for lists that have nothing in them yet.

import
import { EmptyState } from '@joshicodes/cock';

Empty

No messages yet

Don't worry, it happens to everyone. Messages will show up here once they arrive.

API

Read out of the component sources at build time, so it matches the version you installed. Every component also takes class, merged through tailwind-merge so your utility wins.

Props of EmptyState

PropTypeDefault
title required
string—
description
string—
class
string—

Snippets of EmptyState

SnippetTypeDefault
icon
Snippet—
actions
Snippet—

See also

cock. Yes, it stands for core component kit. We checked twice.