alder-ui demos

al-devpanel

Alder's developer bar, as a design-system element: a collapsed bar and an expanded tabbed panel, server-rendered, with monospace code.

Without JavaScript

Open, every section shows (no tab switching); collapsed, only the bar. The server picks with open.

  • Rows: 2
SELECT id, title FROM posts WHERE published = 1 ORDER BY id DESC;
Msg: PostSaved

Enhanced and collapsed

With the script, the buttons switch sections and toggle open. This one starts collapsed: click a tab.

SELECT id, title FROM posts;
UPDATE posts SET title = ? WHERE id = ?;
{"page": "home"}

Patched by the server

A server that patches the panel's inner content need not render hidden or aria-selected: the script re-applies the selection. "Patch" below replaces the panel's content with markup that has neither; the chosen section stays the only one showing.

Section A (render 1)
Section B (render 1)