Skip to content

Display Widgets Overview

Display widgets render read-only content. They have no path and don’t write to form data — they just display information. An alert, a markdown block, a custom-rendered summary card are all display widgets.

import { gui } from '@golemui/gui-shared';
import { html } from 'lit';
const formDef = [
gui.displays.alert({
text: 'Some fields need your attention',
level: 'warning',
}),
gui.displays.markdownText({
md: '### Welcome\nFill in the form below to get started.',
}),
// Programmatic-only — the callback can read live form state.
gui.displays.display(({ $form }) => html`<h2>Hello, ${$form.name}!</h2>`),
gui.displays.custom('productDescription', {
img: 'p.png',
description: '### Cool',
}),
];
WidgetDX shortcutReference
Alertgui.displays.alertAlert
Markdown Textgui.displays.markdownTextMarkdown Text
Renderergui.displays.displayRenderer — Programmatic-only
Customgui.displays.customCustom Widgets