Skip to content
OTF Kit logoOTF Kit

Empty State

Feedback

Illustration + heading + call-to-action for empty data views.

View in Storybook
Empty State
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import EmptyState from @otfdashkit/ui.

Code
// Empty State — Illustration + heading + call-to-action for empty data views.
//
// Install:
//   bun add @otfdashkit/ui

import { EmptyState } from '@otfdashkit/ui'

export function Example() {
  return (
    <EmptyState>
      {/* your content */}
    </EmptyState>
  )
}

Props

Props declared in the EmptyState source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
titlerequiredstring
action{ label: string; onClick: () => void; }
classNamestring
descriptionstring
iconReactNode
secondaryAction{ label: string; onClick: () => void; }
size'sm' | 'default' | 'lg''default'

Related