Official

ui

The look of the app's components: buttons, list rows, cards, settings, callouts, and the blocks and tables of replies. Edit a component here and the whole app draws with it.

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/ui@0.1.1

Permissions in 0.1.1

  • Change app settings settings.writeHighChanges the app settings.Apply the components' look to the window

Files

components/table.tsx1.3 KB
/** @jsxRuntime classic */
/** @jsx template */
// A table (the grid under its header), its row (`head` for the head row)
// and cell (`align`: left, center, right), as markdown draws its tables.
// The cell's `columnMinWidth` and `columnMaxWidth` bound a column: it is
// as wide as its longest cell between them, and longer text wraps. A
// table with `overflowX="scroll"` keeps its columns that wide and scrolls
// sideways when they do not fit; any other table shares its width out
// between its columns, and their text wraps. The kernel keeps the copy
// buttons and the scrolling past 15 rows its own.
import { prop, when, type Definition, template } from "../define.ts";

export const table: Definition = {
  props: {},
  template: <div overflowX="hidden"><slot /></div>,
};

export const tableRow: Definition = {
  props: { head: false },
  template: <div display="flex" flexDirection="row" alignItems="stretch" $when={[when("head", { background: "muted" }), when("!head", { borderTop: { width: 1, color: "border/60" } })]}><slot /></div>,
};

export const tableCell: Definition = {
  props: { head: false, align: "left", columnMinWidth: 64, columnMaxWidth: 360 },
  template: <div paddingX="0.8rem" paddingY="0.45rem" whiteSpace="normal" textAlign={prop("align")} $when={[when("head", { fontWeight: 600 })]}><slot /></div>,
};

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.1.2latestNov 21, 2026>=5 <610.6 KB1 permissionListed
0.1.1Nov 16, 2026>=5 <610.2 KB1 permissionListed
0.1.0Nov 9, 2026>=5 <68.8 KB1 permissionListed

Reviews and comments

0 threads · 0 reviews

No comments yet.