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 fourKpiCards; Active and Stopped haveprogressand toggle the status chip throughactive/onClick. The sales card's label is aMoneyNote.Banner tone="lime"explains how coupons work.- In a
Card:ListToolbar(search, statuschips,sortwith flip, an Export CSVactionsbutton) overDataTable. - Columns:
CouponChip,CreatorCell, the discount with a headertip, uses throughcount(), sales asMoney compactwithfigure="coupon_sales",StatusPill, and a Copy button (cardLabelon phones). Each column has the mock'swidth, so the coupon column does not size to the chip's letter spacing. Pagerin the table'sfooter.