TidalUI

Stats grid preview

A responsive four-card metric grid for consumer-owned values, comparisons, and detail links.

pro · Marketing · composite

When to use

Alternatives

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

Installation

npx shadcn@latest add @tidal-pro/stats-grid

Import components/ui/tidal.css, components/ui/stats-grid.css. Wrap installed components in tidal-scope.

Preview

Stats grid component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/stats-grid.css";
import{TidalStatsGrid}from"./components/ui/stats-grid";
export default()=><div className="tidal-scope"><TidalStatsGrid metrics={[{id:"example",label:"Demo",value:"value"}]} title={"Demo"}/></div>;

API and props

TidalStatsGrid.metrics (required)
ReadonlyArray<TidalStatsGridMetric>

Required metrics value accepted by this exported component.

TidalStatsGrid.title (required)
ReactNode

Required title value accepted by this exported component.

TidalStatsGrid.action
TidalStatsGridLink | undefined

Optional action value accepted by this exported component.

TidalStatsGrid.description
ReactNode

Optional description value accepted by this exported component.

TidalStatsGrid.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalStatsGrid.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalStatsGrid.headingLevel
TidalStatsGridHeadingLevel | undefined

Optional heading level value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas