TidalUI

Empty state preview

Empty collections, search results and errors with a clear next action.

pro · Feedback · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/empty-state

Import components/ui/tidal.css, components/ui/empty-state.css. Wrap installed components in tidal-scope.

Preview

Empty state component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/empty-state.css";
import{TidalEmptyState}from"./components/ui/empty-state";
export default()=><div className="tidal-scope"><TidalEmptyState title={"Demo"}/></div>;

API and props

TidalEmptyState.title (required)
ReactNode

Required title value accepted by this exported component.

TidalEmptyState.actions
ReactNode

Optional actions value accepted by this exported component.

TidalEmptyState.announce
boolean | undefined

Opt into a polite text-only announcement for a changing view.

TidalEmptyState.description
ReactNode

Optional description value accepted by this exported component.

TidalEmptyState.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalEmptyState.variant
TidalEmptyStateVariant | undefined

Optional variant value accepted by this exported component.

TidalEmptyState.visual
ReactNode

Optional visual value accepted by this exported component.

TidalEmptyStateAction.variant
"primary" | "secondary" | undefined

Optional variant value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas