EmptyState
Empty content placeholder with icon, title, and CTA.
import { EmptyState } from '@ybouhjira/hyperkit';#Playground
Edit the code — the preview recompiles and re-renders as you type.
Loading preview…
#More Examples
No Icon
<EmptyState title="Nothing here" description="This space is empty for now." />No Description
<EmptyState icon="search" title="No results" />#Props
| Prop | Type | Default | Description |
|---|---|---|---|
icon | string | — | Icon name to display above the title. |
title * | string | — | Main heading text. |
description | string | — | Optional description text below the title. |
action | JSX.Element | — | Optional action button or element. |
class | string | — | Additional CSS classes. |
unstyled | boolean | false | Remove all default styling classes. |
* required prop.
#Design Tokens
This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.
--sk-bg-tertiary--sk-empty-state-max-w--sk-font-size-base--sk-font-size-sm--sk-space-2xl--sk-space-md--sk-space-sm--sk-space-xl--sk-text-muted--sk-text-primary--sk-text-secondary