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.2
Permissions in 0.1.2
Files
components/card.tsx644 B
/** @jsxRuntime classic */
/** @jsx template */
// A raised surface. A card of rows (`divided`) leaves the inset to its
// rows and draws a line between them; a card of content has its own.
// Rows in a divided card round to its corner less its inset
// (`borderRadius="inner"`).
import { when, type Definition, template } from "../define.ts";
export const card: Definition = {
props: { divided: false },
template: <div display="flex" flexDirection="column" paddingX={12} paddingY={12} background="card" borderRadius="lg" $when={[when("divided", { paddingX: 4, paddingY: 4, divide: { color: "border/60", inset: 8 } })]}><slot /></div>,
};
No comments yet.