Build a daScript panel
daScript is the concise native panel option. A panel exports draw, declares capability requirements in its definition, and calls Host operations through Click’s broker.
require hostrequire uirequire plot
[export]def draw() { UiCardBegin("Service") UiBadge("online", "success") UiMetric("Latency", "18 ms") UiCardEnd()}Styled primitives include buttons, cards, tabs, badges, metrics, switches, toasts, tables, empty states, and loading skeletons. Existing primitive bindings remain available for compatibility.
Callbacks have explicit budgets. Keep data fetching asynchronous, cache derived data, and render only the visible amount of work each frame. Use subscriptions for live feeds and cancel them when the panel instance closes.