Recent Bills
- H.R. 10171August 27, 2026
- H.R. 10156August 27, 2026
- H.R. 10172August 27, 2026
- H.R. 10160August 27, 2026
- H.R. 10181August 27, 2026
- H.R. 10176August 27, 2026
- H.Res. 1496August 27, 2026
- H.R. 10164August 27, 2026
- H.R. 10170August 27, 2026
- H.Res. 1494August 27, 2026
- H.R. 10163August 27, 2026
- H.R. 10157August 27, 2026
Committees
- Administration
- Agriculture
- Agriculture, Nutrition, And Forestry
- Appropriations
- Armed Services
- Banking, Housing, And Urban Affairs
- Budget
- Commerce, Science, And Transportation
- Education and Workforce
- Energy And Commerce
- Energy And Natural Resources
- Environment And Public Works
- Ethics
- Finance
- Financial Services
- Foreign Affairs
- Foreign Relations
- Health, Education, Labor, And Pensions
- Homeland Security
- Homeland Security And Governmental Affa…
- Indian Affairs
- Indian and Insular Affairs
- Intelligence
- Judiciary
- Natural Resources
- Oversight And Government Reform
- Permanent Select Intelligence
- Rules
- Rules And Administration
- Science, Space, And Technology
- Select Intelligence
- Small Business
- Small Business And Entrepreneurship
- Subcommittee on Aviation
- Subcommittee on Border Security and Enf…
- Subcommittee on Coast Guard and Maritim…
- Subcommittee on Commodity Markets, Digi…
- Subcommittee on Conservation, Research,…
- Subcommittee on Counterterrorism and In…
- Subcommittee on Cybersecurity and Infra…
- Subcommittee on Disability Assistance a…
- Subcommittee on Economic Development, P…
- Subcommittee on Economic Opportunity
- Subcommittee on Emergency Management an…
- Subcommittee on Energy and Mineral Reso…
- Subcommittee on Federal Lands
- Subcommittee on Forestry and Horticultu…
- Subcommittee on General Farm Commoditie…
- Subcommittee on Health
- Subcommittee on Highways and Transit
- Subcommittee on Livestock, Dairy, and P…
- Subcommittee on Nutrition and Foreign A…
- Subcommittee on Oversight and Investiga…
- Subcommittee on Oversight, Investigatio…
- Subcommittee on Railroads, Pipelines, a…
- Subcommittee on Transportation and Mari…
- Subcommittee on Water Resources and Env…
- Subcommittee on Water, Wildlife and Fis…
- Transportation And Infrastructure
- Veterans' Affairs
- Ways And Means
On the site it lives at /home. Open it on the canvas, where it can be sized, coloured and rearranged with the rest.
Installation
pnpm dlx shadcn@latest add @44gov/adoptedOr copy the source into your project and update the import paths to match it.
"use client" import * as React from "react"import { Area, AreaChart, CartesianGrid, XAxis } from "recharts" import { fmtNumber } from "@/lib/format"import { congressName } from "@/lib/policy/congress"import { useScoped } from "@/lib/policy/use-scoped"import { CardFrame, ComponentActions } from "@/components/card-frame"import { CardFoot } from "@/components/card-foot"import { CardAnchor } from "@/components/admin/blocks/card-tools"import { CardAction, CardContent, CardHeader, CardTitle } from "@govblock/ui/components/card"import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig } from "@govblock/ui/components/chart" // Adopted Bills — the finance demo's Stock Performance chart, made real// (Brendan, 2026-09-05): the bills adopted in every session the jurisdiction// has, oldest to newest, so the shape is the legislature's own output over// the years. Adopted is LegiScan's Passed, and the other pipelines' words for// it. The current session is the last point and is still climbing. type Row = { session_id: number; adopted: number; bills: number } const chartConfig = { adopted: { label: "Adopted", color: "var(--chart-1)" },} satisfies ChartConfig export function AdoptedBillsCard() { const { data, state, session, pending } = useScoped<Row[]>("adopted", []) const nameOf = React.useCallback((id: number) => (state === "US" ? congressName(id).replace(" Congress", "") : String(id)), [state]) const rows = React.useMemo(() => { const all = (data ?? []).filter((r) => r.bills > 0) // The last twelve sessions, and a session's name is what the pages call it. return all.slice(-12).map((r) => ({ session: nameOf(r.session_id), adopted: r.adopted, bills: r.bills, id: r.session_id })) }, [data, nameOf]) // The chosen session is the one the sentence counts (Brendan, 2026-09-07: // "this didn't change when I changed the session"). const chosen = rows.find((r) => r.id === Number(session)) ?? rows[rows.length - 1] const current = chosen && chosen === rows[rows.length - 1] return ( <CardFrame id="stock"> <CardHeader> <CardAnchor>Adopted Bills</CardAnchor> <CardAction> <ComponentActions rows={rows} id="adopted" /> </CardAction> </CardHeader> <CardContent className="flex flex-col gap-4"> <ChartContainer config={chartConfig} className="h-[200px] w-full"> <AreaChart accessibilityLayer data={rows} margin={{ left: 0, right: 0, top: 8, bottom: 0 }}> <defs> <linearGradient id="fillAdopted" x1="0" y1="0" x2="0" y2="1"> <stop offset="0%" stopColor="var(--color-adopted)" stopOpacity={0.3} /> <stop offset="100%" stopColor="var(--color-adopted)" stopOpacity={0.05} /> </linearGradient> </defs> <CartesianGrid vertical={false} strokeDasharray="3 3" /> <XAxis dataKey="session" tickLine={false} axisLine={false} tickMargin={8} minTickGap={24} /> <ChartTooltip cursor={false} content={<ChartTooltipContent labelKey="session" />} /> <Area type="monotone" dataKey="adopted" stroke="var(--color-adopted)" strokeWidth={2} fill="url(#fillAdopted)" /> </AreaChart> </ChartContainer> </CardContent> <CardFoot href={`/laws?state=${state}`} label="The laws" /> </CardFrame> )} Usage
import { AdoptedBillsCard } from "@/components/cards/adopted"<AdoptedBillsCard />Composition
The parts the block is built from, in the order they appear.
AdoptedBillsCard├── CardHeader├── CardAction├── CardContent└── ChartContainerData
The routes the block reads, each under the jurisdiction and year in scope. Every one is documented in the API.
API Reference
AdoptedBillsCard takes no props. It reads the jurisdiction and year from the page.