Make the agent use the existing Switch primitive, not a styled checkbox or a clickable div
The PR adds a settings toggle by restyling a native checkbox, or it builds a clickable div with a useState boolean and a CSS knob. The repo already has a Switch primitive with a visible label, role="switch" , aria-checked , and the Space / Enter pattern already wired. Nearby notification and theme…
Read the full story at DEV Community — AI ↗
Timeline · 4 reports
- 2026-12-02 15:32 · DEV Community — AI
Make the agent use the existing Alert or InlineMessage, not a homemade colored banner - 2026-12-02 11:35 · DEV Community — AI
Make the agent use the existing Table or DataGrid, not a handmade table of divs - 2026-12-01 12:58 · DEV Community — AI
Make the agent use the existing Breadcrumb component, not a homemade slash path - 2026-11-30 13:06 · DEV Community — AI
Make the agent use the existing Switch primitive, not a styled checkbox or a clickable div