Components · Code block
Code block
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Code block
newCode samples on navy, with an optional bar on top for the title and the Copy button. Long lines scroll sideways and never wrap.
packages/brand-ui/src/components/code-block.tsx
curl -X POST https://newstech.example/api/v1/redemptions \
-H 'Authorization: Bearer nt_live_…' \
-d '{"codes": ["GATE-0001"]}'{
"results": [
{ "code": "GATE-0001", "status": "matched", "newsroom": "Harbour Times" }
]
}curl -X POST https://newstech.example/api/v1/redemptions \
-H 'Authorization: Bearer nt_live_…' \
-d '{"codes": ["GATE-0001"]}'Copy button
newCopies a value and shows “Copied” with a tick for 2 seconds. Click it to try.
packages/brand-ui/src/components/copy-button.tsx