Block 186 of 297
Grants Awarded
Accessible table of awarded grants with grantee, program, amount, year and purpose, a computed total and CSV link.
- Puck key
- GrantsAwardedBlock
- Export
- grantsAwardedBlock
- React component
- <GrantsAwarded />
- Path
- components/puck/grants-awarded-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A data table of awarded grants with grantee, program, amount, year and purpose, plus an optional totals row that adds up every disclosed amount. On phones the table scrolls sideways inside its own box, with a note in the caption saying so. A CSV download link sits beside the heading and a source line runs below.
- A foundation's recent grants page
- An annual report grants list
- A transparency page for a public or corporate grant program
Writing the content
- Type Amount in dollars, like "$25,000". Leave it blank for undisclosed grants; the total then states how many grants it covers.
- Grants show in the order entered, so sort them before you paste them in. Up to 60 rows fit.
- Write a Table caption that names the set, like "Grants approved by the board in 2026"; it shows above the table.
- For longer histories, link the full list with Download link text and point it at a CSV.
Accessibility
- It is a real table with a visible caption, column headers, the grantee as each row header, and the total in a tfoot (WCAG 1.3.1).
- The scroll container is a focusable region named by the caption, so keyboard users can scroll it (WCAG 2.1.1).
- The CSV link uses the download attribute and has a 44px minimum height.
Customizing the code
- Amounts are reformatted with the usd formatter (whole dollars); change it for cents or another currency.
- Column headers are written directly in the thead, and min-w-3xl on the table sets when scrolling starts.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Table captiontext
- Grantsarray
- Totals rowradio
- Download link texttext
- Download linktext
- Source linetext