@team-plain/ui-components package provides typed helper functions for building ComponentInput objects. Instead of constructing JSON by hand, you get a concise, type-safe API.
Installation
@team-plain/graphql as a peer dependency.
Usage
Available components
| Builder | Description |
|---|---|
uiComponent.text({ text, size?, color? }) | Rich text with optional size and color |
uiComponent.plainText({ text }) | Plain unformatted text |
uiComponent.badge({ label, color? }) | Colored badge |
uiComponent.divider() | Horizontal divider |
uiComponent.spacer({ size }) | Vertical spacing |
uiComponent.linkButton({ label, url }) | Button that opens a URL |
uiComponent.copyButton({ value, tooltip? }) | Button that copies a value to clipboard |
uiComponent.workflowButton({ label, workflowId }) | Button that triggers a workflow |
uiComponent.container({ content }) | Groups components together |
uiComponent.row({ mainContent, asideContent }) | Two-column layout |
Example
Resources
- UI components reference — component properties and visual examples
- UI components playground — build and preview components interactively
- GitHub repository

