Skip to content
Components, switch product

GolemUI Components

GolemUI Components are the gui-* web components behind GolemUI Forms: text fields, one-time codes, sliders, pickers, lists, buttons, menus, tabs, accordions and alerts, and the overlays: dialogs, popovers, tooltips and toasts. They are built with Lit, work in plain HTML and in any framework, and don’t need the form engine.

Code of the example above
TextInputBasic.tsx
import { GuiTextinput } from '@golemui/gui-components/react';
import '@golemui/gui-components/index.css';
export function TextInputBasic() {
return <GuiTextinput label="Full name" />;
}

To try every one of them on one page, open the gallery. To add them to a project, see Installation.

  • Native events. The elements fire standard DOM events, so you listen to them like any other. Every value element fires gui-input while the user edits and gui-change when the value is committed, with the value in event.detail.value. Every event bubbles.
  • Native form participation. Give an element a name and it takes part in a <form>: it submits its value, blocks an invalid submit and resets with the form. See Native forms.
  • Accessible by default. Labels, hints and errors are linked to the control, and every element works with the keyboard. See Accessibility.
  • Light DOM and cascade layers. The elements render into the page, not a shadow root, and every rule sits in a golemui.* cascade layer, so your own CSS wins without fighting specificity. See Stylesheets.
  • Server rendering. The elements load in Node, and they can render their content on the server in React, Next.js, Angular, Analog, Vue, Nuxt, Lit and Astro. See Server rendering.
  • Strict CSP. Rendered in the browser, the elements pass a Content Security Policy of script-src 'self' and style-src 'self': no inline styles, no eval, no data: images. See Strict CSP.