docs/components/feedback/EmptyState

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.

Live playground
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

PropTypeDefaultDescription
iconstringIcon name to display above the title.
title *stringMain heading text.
descriptionstringOptional description text below the title.
actionJSX.ElementOptional action button or element.
classstringAdditional CSS classes.
unstyledbooleanfalseRemove 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