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
Files
components/bubble.tsx768 B
/** @jsxRuntime classic */
/** @jsx template */
// A message sent into a transcript: the raised bubble with the `xl` corner,
// 11px by 7.5px padding and 13.125px text on 21.3px. Your own messages and
// the prompt a subagent was given are on the `bubble` surface; a message
// another agent sent (`received`) is on `card`.
import { type Definition, template, when } from "../define.ts";
export const bubble: Definition = {
props: { received: false },
template: (
<div display="flex" flexDirection="column" gap="small" paddingX={11} paddingY="medium" minWidth={0} maxWidth="100%" background="bubble" fontSize={13.125} lineHeight={21.3} borderRadius="xl" elevation="raised" $when={[when("received", { background: "card" })]}>
<slot />
</div>
),
};
No comments yet.