Build a widget
The steps for building one widget with bricksui.
Every widget goes through the same steps in bricksui. Don't skip any of them.
- 1
Start with one widget#
Type
/bricksuiwith a Figma link, a screenshot or a short description of one widget. - 2
Pick the spec version#
bricksui asks which spec version to build against. Pick the version deployed where the widget will run. Pick the newest only when you're trying things out.
- 3
Say Pulse#
It asks Pulse or Chat. Pick Pulse for dashboard widgets. A Pulse widget fetches its own data; a Chat widget doesn't.
- 4
Confirm states and thresholds#
If the design has states (green up, red down, at-risk, blocked), bricksui asks which data field drives each one and the exact cut-offs. Give real field names and numbers. It never guesses them.
- 5
Approve the preview#
It shows a visual mock with sample values. Fix layout and spacing here, before any JSON is written.
- 6
Give the data source#
Tell it: a REST endpoint, a Supabase table or a Supabase Edge Function. For Supabase it looks at your schema and confirms the query with you.
- 7
Get the JSON#
bricksui writes the spec, runs it through its validator and reviewer, then gives you one JSON block. Several widgets at once come back as one array, each with an
id, atitleKeyand its spec underpulseDsl. - 8
Check it, then use it#
Run the Checklist on the JSON. If something's off, ask bricksui for that one fix only.
Tip
When bricksui asks "Want me to remember this?", say yes for things you'll reuse: colour pairs, thresholds, your Supabase project. It saves them on your machine only.