TidalUI

Order summary preview

A semantic order review block with consumer-owned items, price rows, totals, and native actions, without checkout behavior.

pro · Blocks · composite

When to use

Alternatives

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

Installation

npx shadcn@latest add @tidal-pro/order-summary

Import components/ui/tidal.css, components/ui/order-summary.css. Wrap installed components in tidal-scope.

Preview

Order summary component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/order-summary.css";
import{TidalOrderSummary}from"./components/ui/order-summary";
export default()=><div className="tidal-scope"><TidalOrderSummary items={[{id:"example",name:"Demo",quantity:"value",amount:"value"}]} rows={[{id:"example",label:"Demo",value:"value"}]} title={"Demo"} totalLabel={"Demo"} totalValue={"value"}/></div>;

API and props

TidalOrderSummary.items (required)
ReadonlyArray<TidalOrderSummaryItem>

Required items value accepted by this exported component.

TidalOrderSummary.rows (required)
ReadonlyArray<TidalOrderSummaryRow>

Required rows value accepted by this exported component.

TidalOrderSummary.title (required)
ReactNode

Required title value accepted by this exported component.

TidalOrderSummary.totalLabel (required)
ReactNode

Required total label value accepted by this exported component.

TidalOrderSummary.totalValue (required)
ReactNode

Required total value value accepted by this exported component.

TidalOrderSummary.actions
ReadonlyArray<TidalOrderSummaryAction> | undefined

Optional actions value accepted by this exported component.

TidalOrderSummary.actionsLabel
string | undefined

Optional actions label value accepted by this exported component.

TidalOrderSummary.amountColumnLabel
string | undefined

Optional amount column label value accepted by this exported component.

TidalOrderSummary.description
ReactNode

Optional description value accepted by this exported component.

TidalOrderSummary.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalOrderSummary.headingLevel
HeadingLevel | undefined

Optional heading level value accepted by this exported component.

TidalOrderSummary.itemColumnLabel
string | undefined

Optional item column label value accepted by this exported component.

TidalOrderSummary.itemsLabel
string | undefined

Optional items label value accepted by this exported component.

TidalOrderSummary.notice
ReactNode

Optional notice value accepted by this exported component.

TidalOrderSummary.quantityColumnLabel
string | undefined

Optional quantity column label value accepted by this exported component.

TidalOrderSummary.status
ReactNode

Optional status value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas