Skip to Content
BBRICKSv0.7.4
Screens

Coupons

Coupon tiles, the coupons table and row actions.

Coupon tiles, the coupons table and row actions. The composition is CouponsScreen.tsx; every part of it is a BRICKS export.

Coupons

Coupon tiles, the coupons table and its row actions.

Pinned to TRNDR preset
Code
import { useLanguage } from '@ergasti/bricks';
import { CouponsScreen } from '../../../packages/bricks/src/gallery/screens/CouponsScreen';

function Coupons() { return <CouponsScreen language={useLanguage()} />; }

How it is built

  • KpiGrid phoneColumns={2} of four KpiCards; Active and Stopped have progress and toggle the status chip through active / onClick. The sales card's label is a MoneyNote.
  • Banner tone="lime" explains how coupons work.
  • In a Card: ListToolbar (search, status chips, sort with flip, an Export CSV actions button) over DataTable.
  • Columns: CouponChip, CreatorCell, the discount with a header tip, uses through count(), sales as Money compact with figure="coupon_sales", StatusPill, and a Copy button (cardLabel on phones). Each column has the mock's width, so the coupon column does not size to the chip's letter spacing.
  • Pager in the table's footer.