Skip to content

Block 159 of 297

Utility Rates

Water, sewer and trash rate tables by tier, with the effective date, a pay-your-bill link and bill assistance.

Puck key
UtilityRatesBlock
Export
utilityRatesBlock
React component
<UtilityRates />
Path
components/puck/utility-rates-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

Rate cards for each utility service, each holding a real data table of tiers, usage ranges and rates, with an optional base charge and note. Below the cards sit a pay-your-bill panel and a bill assistance panel. Up to three cards line up across large screens and stack on smaller ones. Use it on a utility billing page where residents need to check their rates.

  • A water and sewer department's rates page
  • A solid waste page comparing cart sizes and monthly fees
  • A budget-season page announcing new rates and their effective date
Writing the content
  • Add one service per utility (up to six), each with one to eight rate rows. A row with neither Tier nor Rate is skipped.
  • Tier column heading, Usage column heading and Rate column heading apply to every table, so pick words that work for all services, like "Monthly usage".
  • The pay panel appears only when Pay link text is filled in; the assistance panel only when Assistance heading is.
Accessibility
  • Each service is a table with column headers, row headers on the tier name, and a hidden caption such as "Water rates, rates effective July 1, 2026" (WCAG 1.3.1).
  • Tables sit in a focusable, labelled scroll region, so keyboard users can scroll a wide table on a narrow screen (WCAG 2.1.1).
Customizing the code
  • The pay panel is bg-indigo-700 and accents use indigo; replace indigo- classes and the focusRing constant for your brand.
  • Card columns are chosen by the cols constant (lg:grid-cols-3 for three or more services); change it to allow a different maximum.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Effective datetext
  • Servicesarray
  • Tier column headingtext
  • Usage column headingtext
  • Rate column headingtext
  • Source linetext
  • Pay panel headingtext
  • Pay panel texttextarea
  • Pay link texttext
  • Pay linktext
  • Assistance headingtext
  • Assistance texttextarea
  • Assistance link texttext
  • Assistance linktext
  • Assistance phonetext