uix

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT

README

uix

uix is a shadcn/ui-style component library for the MyGo native UI toolkit.

Import a component the Go way — it is a normal package of the module — and it draws with MyGo's native UI. No webview, no HTML.

Quick start

Import the components you use:

go get github.com/smallnest/uix/components/base github.com/smallnest/uix/components/button

The base package holds the design tokens; go mod tidy fetches any sibling a component composes. Use the components in a view:

package main

import (
	"github.com/egoist/mygo"
	"github.com/egoist/mygo/ui"
	tokens "github.com/smallnest/uix/components/base"
	"github.com/smallnest/uix/components/button"
)

func view(c *ui.Context) {
	c.SetTheme(tokens.For(c.Theme().Dark))
	ui.Column(c).Fill().Center().Gap(12).Children(func() {
		button.Button(c, button.Props{
			Label:   "Save",
			Variant: button.Primary,
			OnClick: save,
		})
	})
}

func main() {
	mygo.App.WhenReady(func() {
		mygo.NewWindow(mygo.WindowOptions{
			Title:   "Demo",
			Width:   420,
			Height:  280,
			Content: ui.View(view),
		})
	})
	if err := mygo.App.Run(); err != nil {
		panic(err)
	}
}

Components

Component Role
base Design tokens, light and dark
button Button in six variants and three sizes
buttongroup Row of buttons joined as one control, of which one is chosen, or several
field Form field: label, hint, error
input Text input, one line
inputgroup Field with an icon or text at either end, as a search or a currency
inputotp Row of cells that take a one-time password, one character each
kbd A key of the keyboard shown as a chip
label Standalone label of a control, in the medium weight
checkbox Check box with a label
switch Switch with a label
slider Slider with a label and a readout
select Drop-down with a placeholder
badge Pill label in four variants
progress Progress bar with a label and a readout
dialog Modal dialog with a title and actions
drawer Panel that rises over the bottom, with a handle, dimming the rest
sheet Panel that slides over from an edge, dimming the rest
command Palette that opens over the window to run a command by name
toast Transient notification at a window corner
dropdown Menu that opens from a button
tabs Tab list with an accent bar for the active tab
radio Radio group with one Tab stop
textarea Text area, many lines, with a height in rows
table Data table with sort, choice and a header band
card Rounded container with a header, content and footer
avatar Circle with a photo or initials
aspectratio Box that keeps an aspect ratio, its children filling it
separator Horizontal or vertical divider
alert Colored notice in four variants
combobox Searchable drop-down that filters the options as you type
numberinput Number input with step buttons and arrow keys
searchfield Search box with a clear button and an Enter submission
rating Row of stars that set a score, or show one read-only
datepicker Calendar button that picks a date, by click or keyboard
timeinput Time field with stepping, typing and arrow keys
colorpicker Swatch that opens a picker with channels, hex and swatches
toggle Pressed button, like the icon toggles of a toolbar
accordion Bordered column of sections that a click opens and closes
collapsible Disclosure whose label shows and hides its content
breadcrumbs Path of items separated by chevrons, the last where you are
popover Panel below a trigger, closed by a click outside or Escape
togglegroup Row of toggle buttons, each with a tip, for a toolbar
tooltip Label that appears over a control after the pointer rests
menu Button that opens a menu of actions, with separators and disabled items
menubar Row of flat buttons, each opening a menu, as an app's File and Edit
navigationmenu Bar of links where a link with children opens a panel of links
contextmenu Menu the system shows for a right-click, from the items of the Props
sidebar Navigation column of sections and items, one chosen
tree Hierarchical list whose branches open and close, one node chosen
split Resizable panes with a divider the user drags
list Scrolling list of rows that keeps its place, one row chosen
toolbar Row of actions along the top of a window, one stop of Tab
meter Progress meter that colors by how near the top it is
spinner Ring of spokes that turns while work goes on
skeleton Placeholder of content still loading, a bar that pulses softly
empty Empty state: an icon over a title and a description, with an action
rangeslider Track with two knobs that set the low and the high of a range
stepper Number with arrows that step it, which repeat as they are held
richtext Text of styled runs, each with its own weight, color or underline
editabletext Text that renames in place on a double click
findbar Bar to find in a document, with the count and the step buttons
segmented Row of segments of which one is chosen, a switch between views
grid Grid layout of columns the children fill in order, or place themselves in
gridview Scrolling grid of items, of which a click or the arrows choose one
scroll Container that scrolls its content vertically
fieldset Group of fields under a bold legend
autocomplete Field that completes the text typed, of the suggestions below it
tokenfield Field of tokens as chips, added on Enter and taken out by a button
calendar Month's calendar of which a click or the keys choose a day
checkboxgroup Group of check boxes under a check of all of them, mixed while some are
form Form whose field labels line up to the widest, as macOS draws them
questionnaire Form of questions, one at a time, with a progress bar and Back and Next
scrollhorizontal Row that scrolls its content sideways
scrollboth Container that scrolls its content up and sideways
link Text that opens a URL, or a path of the Router it lives in
icon SVG shown as an icon, in the color of the text around it
image Bitmap or SVG shown as a picture, at its size or fitted into a box
colorwell Swatch that opens a color picker below it, as AppKit's color well
thinking "Thinking" indicator of an agent: a pulsing dot and steps that light up
log Scrolling list of an agent's steps that reveal one by one as they run
chat Message list with bubbles for the user and the assistant
marker Short inline label of a turn of a conversation, in three looks
attachment Card of a file of a conversation, with a preview and the upload's progress
composer Message box with a prompt and the send button for a chat
notificationcenter Panel of notifications in tabs, opened from a bell button
appshell App frame with a title, a sidebar and the page it switches
statcard Metric card with the delta against the previous period
linechart Line chart that follows the pointer, against a year earlier
barchart Paired bar chart that follows the pointer, against a year earlier
carousel Slides you flip with buttons, dots or a trackpad
pagination Page numbers with dots and the previous and next buttons
fileupload File zone that uploads a picked file with a progress ring
alertdialog Modal that interrupts for a confirmation, with a media icon and a compact size
bubble Framed surface of a message, in looks from the strong default to an unframed ghost
item Row of a list with a media tile, a title, a description and actions
message Turn of a conversation, with the avatar, the sender line, the bubble and a status line
messagescroller Viewport of a conversation that follows the end, and offers a button back to it
nativeselect Drop-down on the platform's own menu, with grouped options

The last rows are ports of BoardUI components to MyGo's native UI: the same roles and the same look, drawn without HTML. Where BoardUI leans on the browser (an input element), the port uses the closest native MyGo equivalent, such as the open dialog for a file pick, and the drop zones take files from other apps directly.

The rows below are ports of the shadcn/ui expansions to MyGo's native UI. Where an expansion leans on the browser, the port uses the closest native MyGo equivalent: the responsive modal becomes a bottom sheet on a narrow window, the heading anchor copies uix#section to the clipboard instead of setting a URL, and the magic back button returns to the app's home when it has no history.

Component Role
autosizetextarea Text area that grows with its text, from a floor to a ceiling of rows
blockquote Quote on a muted face with an accent bar, and the author at the far end
datetimepicker Date field and time field editing one moment together
floatinglabelinput Field whose label sits inside it, and floats to the top border on focus or text
headingwithanchor Heading with a link button that copies the section's anchor to the clipboard
infinitescroll Scrolling list that loads the next page as its end comes near
inlinecode Code chip in the prose, with a muted face and the monospace font
interactivestepper Steps of a process, each reachable from its indicator, with Back and Next
loadingbutton Button that turns into a spinner while its work runs, and stops clicks
magicback Round back button that goes back, or home when there is no history
multiselect Field choosing several options, whose popup has a check box for each
responsivemodal Dialog centered on a wide window, a bottom sheet on a narrow one
typewriter Text that types itself out, a character at a time, with a blinking caret

The rows below are ports of the onevra components to MyGo's native UI. They keep the same roles: parsing happens once on the application side, and rendering draws the retained result, so the UI thread never runs a parser.

Component Role
code Retained syntax highlighting: a parsed document that renders its light and dark spans
markdown Markdown with GFM tables, tasks and images, and highlighted code blocks
lucide The Lucide icon set, each icon one lazy parse shared by every draw
settings Settings surface of categories, groups and items, with search over their metadata

Examples

The examples directory shows the components at work. An example imports the components of this repository directly, the way a library consumer does, so it always shows the current source. See examples/README.md.

Design tokens

The MyGo theme names its colors semantically. The tokens package curates their values into one palette. It maps to the shadcn tokens:

shadcn token MyGo field
background Background
foreground Text
primary Accent
primary-foreground AccentText
secondary Surface
muted SurfaceHover
muted-foreground TextMuted
destructive Danger
border Border
ring Focus

Apply the palette at the top of a view:

c.SetTheme(tokens.For(c.Theme().Dark))

The palette ships in the base package. To change it, start from it and override the colors you want, on the theme you set:

t := tokens.Light()
t.Accent = ui.Hex("#0f766e")
c.SetTheme(t)

tokens.Light and tokens.Dark start from the MyGo theme, so the neutrals, fonts and metrics stay system-tuned; only the colors you name change.

Writing a component

Add a directory under components. Each directory is one package, importable from the module. A component reads its colors from the theme of the Context.

Write a headless test for the component. MyGo renders frames in memory without a window:

func TestClick(t *testing.T) {
	clicks := 0
	tt := ui.NewTester(view, 200, 100)
	_ = tt.Click("Go")
	if clicks != 1 {
		t.Fatal("want one click")
	}
}
  • onevra — the sibling component library these four rows port: the settings composer, the Markdown and code views and the Lucide set come from it. MIT.
  • MujicaUI — a court-gothic component library for MyGo native UI. Ivory and charcoal base, wine-red accent, old-gold ornament lines, serif titles. 100 components, light and dark themes, three densities. MyGo draws the UI on the GPU; no webview. MIT.
  • GoRex — a clone of Superlogical's Rex terminal in MyGo native UI. Tabs and split panes, persistent sessions, program activity. No webview, no cgo; one ~15 MB app.
  • Godiff — a reimplementation of codiff in MyGo native UI. Review Git changes and commit them, all local. No webview, no JavaScript.
  • MyGo 复刻 DeepSeek harness 界面 — 海拉鲁编程客 (@hylarucoder). Pure Go, no JS/TS. AI copied DeepSeek's harness interface, including the streaming chat page and the trace page.
  • MyGo Native UI docs — the toolkit these components draw with. Windows written in Go with package ui: no HTML, no JavaScript, no webview; MyGo draws them on the GPU.
  • MyGo Terminal plugin — a terminal for native UI that runs the shell or any program with Ghostty's emulator (libghostty-vt). All Go, no cgo.

Rules

  • A component imports only github.com/egoist/mygo, the sibling components it composes, and the mature parser a port needs (goldmark for Markdown, chroma for highlighting).
  • A component reads its colors from the theme of the Context. It does not hard-code colors.
  • Every component ships with a headless test that proves its behavior.

Known limits

  • The custom-face variants draw their hover and press states with Draw, which tracks the pointer. Primary and Secondary keep the MyGo look, whose disabled state stays colored.
  • A tooltip shows after the pointer rests, so its test waits the same moment of real time before it checks the label.

Directories

Path Synopsis
components
accordion
Package accordion provides a shadcn/ui-style Accordion: a column of sections in a bordered box, one above the other, that a click opens and closes, as do Enter and Space, and that the Up and Down arrows move between.
Package accordion provides a shadcn/ui-style Accordion: a column of sections in a bordered box, one above the other, that a click opens and closes, as do Enter and Space, and that the Up and Down arrows move between.
alert
Package alert provides a shadcn/ui-style Alert: a colored notice with a bold title and an optional description, in the accent, success, warning or danger color.
Package alert provides a shadcn/ui-style Alert: a colored notice with a bold title and an optional description, in the accent, success, warning or danger color.
alertdialog
Package alertdialog provides a shadcn/ui-style Alert Dialog: a modal that interrupts the app for a confirmation, as deleting something permanent, and expects a response.
Package alertdialog provides a shadcn/ui-style Alert Dialog: a modal that interrupts the app for a confirmation, as deleting something permanent, and expects a response.
appshell
Package appshell provides the AppShell of BoardUI for the MyGo native toolkit: the page frame of a starter, with the sidebar, the breadcrumb trail, the page heading and its actions, and the content below.
Package appshell provides the AppShell of BoardUI for the MyGo native toolkit: the page frame of a starter, with the sidebar, the breadcrumb trail, the page heading and its actions, and the content below.
aspectratio
Package aspectratio provides a box that keeps an aspect ratio, for the Aspect Ratio of shadcn/ui: the width of its container, the height the ratio makes, and the children filling it.
Package aspectratio provides a box that keeps an aspect ratio, for the Aspect Ratio of shadcn/ui: the width of its container, the height the ratio makes, and the children filling it.
attachment
Package attachment provides a shadcn/ui-style Attachment: a card for a file of a conversation, with a preview, its name, a line about it, the progress of its upload, and a button to remove it.
Package attachment provides a shadcn/ui-style Attachment: a card for a file of a conversation, with a preview, its name, a line about it, the progress of its upload, and a button to remove it.
autocomplete
Package autocomplete provides a field that completes the text as it is typed, as a shadcn/ui component for the Autocomplete of MyGo: the suggestions containing the text show below it, those starting with it first, and Up and Down move among them while Enter takes one.
Package autocomplete provides a field that completes the text as it is typed, as a shadcn/ui component for the Autocomplete of MyGo: the suggestions containing the text show below it, those starting with it first, and Up and Down move among them while Enter takes one.
autosizetextarea
Package autosizetextarea provides the AutoSize Textarea expansion of shadcn/ui: a text area that grows with what is typed, up to a limit, and then scrolls instead of growing further.
Package autosizetextarea provides the AutoSize Textarea expansion of shadcn/ui: a text area that grows with what is typed, up to a limit, and then scrolls instead of growing further.
avatar
Package avatar provides a shadcn/ui-style Avatar: a circle with a photo, or the initials of a name on a muted face.
Package avatar provides a shadcn/ui-style Avatar: a circle with a photo, or the initials of a name on a muted face.
badge
Package badge provides a shadcn/ui-style badge: a short label in a pill, for counts and status.
Package badge provides a shadcn/ui-style badge: a short label in a pill, for counts and status.
barchart
Package barchart provides the OrdersChartCard of BoardUI for the MyGo native toolkit: a card of a year of monthly orders as paired bars, the current year against the year before.
Package barchart provides the OrdersChartCard of BoardUI for the MyGo native toolkit: a card of a year of monthly orders as paired bars, the current year against the year before.
base
Package tokens provides the palette a uix app installs, the way the CSS variables of shadcn/ui give a web app its design tokens.
Package tokens provides the palette a uix app installs, the way the CSS variables of shadcn/ui give a web app its design tokens.
blockquote
Package blockquote provides a shadcn/ui-style Block Quote, as the expansion of the same name: a quote on a muted face with an accent bar on the start, and the author line at the far end.
Package blockquote provides a shadcn/ui-style Block Quote, as the expansion of the same name: a quote on a muted face with an accent bar on the start, and the author line at the far end.
breadcrumbs
Package breadcrumbs provides a shadcn/ui-style Breadcrumb: a path of items separated by chevrons, as Finder's path bar shows one.
Package breadcrumbs provides a shadcn/ui-style Breadcrumb: a path of items separated by chevrons, as Finder's path bar shows one.
bubble
Package bubble provides a shadcn/ui-style Bubble: the framed surface of one message in a conversation, as chat apps draw the current user's turn in the accent color.
Package bubble provides a shadcn/ui-style Bubble: the framed surface of one message in a conversation, as chat apps draw the current user's turn in the accent color.
button
Package button provides a shadcn/ui-style Button for the MyGo native toolkit.
Package button provides a shadcn/ui-style Button for the MyGo native toolkit.
buttongroup
Package buttongroup provides a shadcn/ui-style Button Group: a row of buttons drawn joined as the segments of one control, of which one is chosen, or several with Multiple.
Package buttongroup provides a shadcn/ui-style Button Group: a row of buttons drawn joined as the segments of one control, of which one is chosen, or several with Multiple.
calendar
Package calendar provides a month's calendar choosing a day, as a shadcn/ui component for the Calendar of MyGo, like the graphical date picker of SwiftUI.
Package calendar provides a month's calendar choosing a day, as a shadcn/ui component for the Calendar of MyGo, like the graphical date picker of SwiftUI.
card
Package card provides a shadcn/ui-style Card: a bordered rounded container with an optional header and footer, for grouping related content on a surface.
Package card provides a shadcn/ui-style Card: a bordered rounded container with an optional header and footer, for grouping related content on a surface.
carousel
Package carousel provides the gallery carousel of BoardUI for the MyGo native toolkit: a horizontal run of slides you slide through with the previous and next buttons or the position dots, or with a trackpad.
Package carousel provides the gallery carousel of BoardUI for the MyGo native toolkit: a horizontal run of slides you slide through with the previous and next buttons or the position dots, or with a trackpad.
chat
Package chat provides a working chat surface for the MyGo native toolkit, built from the agent components: a transcript that scrolls, the thinking indicator while the model works, and the composer at the bottom.
Package chat provides a working chat surface for the MyGo native toolkit, built from the agent components: a transcript that scrolls, the thinking indicator while the model works, and the composer at the bottom.
checkbox
Package checkbox provides a shadcn/ui-style check box: a box and a label that toggle a bool together, from the Checkbox of MyGo.
Package checkbox provides a shadcn/ui-style check box: a box and a label that toggle a bool together, from the Checkbox of MyGo.
checkboxgroup
Package checkboxgroup provides a group of check boxes under a check of all of them, as a shadcn/ui component for the CheckboxGroup of MyGo: the label's check checks all the boxes, or none when they all are, and shows mixed while some are.
Package checkboxgroup provides a group of check boxes under a check of all of them, as a shadcn/ui component for the CheckboxGroup of MyGo: the label's check checks all the boxes, or none when they all are, and shows mixed while some are.
code
Package code provides retained, read-only syntax highlighting for MyGo text, ported from the code view of the onevra component library (MIT).
Package code provides retained, read-only syntax highlighting for MyGo text, ported from the code view of the onevra component library (MIT).
collapsible
Package collapsible provides a shadcn/ui-style Collapsible: a disclosure with a label and an arrow, which a click opens and closes, as do Enter and Space, showing below it what Children draws while *Open is true.
Package collapsible provides a shadcn/ui-style Collapsible: a disclosure with a label and an arrow, which a click opens and closes, as do Enter and Space, showing below it what Children draws while *Open is true.
colorpicker
Package colorpicker provides a shadcn/ui-style ColorPicker: a swatch of the color, whose picker below it changes it — a square of saturation and brightness, sliders of the hue and the opacity, the color in hex, and swatches of common colors.
Package colorpicker provides a shadcn/ui-style ColorPicker: a swatch of the color, whose picker below it changes it — a square of saturation and brightness, sliders of the hue and the opacity, the color in hex, and swatches of common colors.
colorwell
Package colorwell provides a swatch of a color that opens a picker below it, as AppKit's color well does, for the ColorWell of MyGo.
Package colorwell provides a swatch of a color that opens a picker below it, as AppKit's color well does, for the ColorWell of MyGo.
combobox
Package combobox provides a shadcn/ui-style Combobox: a searchable drop-down.
Package combobox provides a shadcn/ui-style Combobox: a searchable drop-down.
command
Package command provides a shadcn/ui-style Command: a palette that opens over the window to run a command by name, as ⌘K does.
Package command provides a shadcn/ui-style Command: a palette that opens over the window to run a command by name, as ⌘K does.
composer
Package composer provides the free AgentComposer of BoardUI for the MyGo native toolkit: a pill with a text field and circular controls, and the thin status row beneath it.
Package composer provides the free AgentComposer of BoardUI for the MyGo native toolkit: a pill with a text field and circular controls, and the thin status row beneath it.
contextmenu
Package contextmenu provides a shadcn/ui-style Context Menu, on the native context menu of MyGo: the system shows it where the element is clicked with the secondary button, or Control-clicked on macOS, and below the element for the menu key or Shift+F10 while it has the focus.
Package contextmenu provides a shadcn/ui-style Context Menu, on the native context menu of MyGo: the system shows it where the element is clicked with the secondary button, or Control-clicked on macOS, and below the element for the menu key or Shift+F10 while it has the focus.
datepicker
Package datepicker provides a shadcn/ui-style DatePicker: a field showing the date, whose calendar below it changes it, the arrows and Enter moving among the days and Page Up and Page Down among the months.
Package datepicker provides a shadcn/ui-style DatePicker: a field showing the date, whose calendar below it changes it, the arrows and Enter moving among the days and Page Up and Page Down among the months.
datetimepicker
Package datetimepicker provides the DateTime Picker expansion of shadcn/ui: a date field and a time field editing one value together.
Package datetimepicker provides the DateTime Picker expansion of shadcn/ui: a date field and a time field editing one value together.
dialog
Package dialog provides a shadcn/ui-style modal dialog with a title, a description and an action row, on top of the DialogBase of MyGo.
Package dialog provides a shadcn/ui-style modal dialog with a title, a description and an action row, on top of the DialogBase of MyGo.
drawer
Package drawer provides a shadcn/ui-style Drawer: a panel that rises over the bottom of the window, with a handle to grab, as a phone's sheet or a confirmation that needs the context of the page.
Package drawer provides a shadcn/ui-style Drawer: a panel that rises over the bottom of the window, with a handle to grab, as a phone's sheet or a confirmation that needs the context of the page.
dropdown
Package dropdown provides a shadcn/ui-style dropdown menu: a button that opens a list of actions under it, to run one.
Package dropdown provides a shadcn/ui-style dropdown menu: a button that opens a list of actions under it, to run one.
editabletext
Package editabletext provides a text the user edits in place, as a shadcn/ui component for the EditableText of MyGo: a double click on it, or Enter while it has the focus, shows a field of it, with the text before the extension chosen, ready to type over.
Package editabletext provides a text the user edits in place, as a shadcn/ui component for the EditableText of MyGo: a double click on it, or Enter while it has the focus, shows a field of it, with the text before the extension chosen, ready to type over.
empty
Package empty provides an empty state, for the Empty of shadcn/ui: an icon over a title and a description, with an optional action, shown where a list or a search found nothing.
Package empty provides an empty state, for the Empty of shadcn/ui: an icon over a title and a description, with an optional action, shown where a list or a search found nothing.
field
Package field wraps a form control with its label and helper text, as the FormItem of shadcn/ui does.
Package field wraps a form control with its label and helper text, as the FormItem of shadcn/ui does.
fieldset
Package fieldset provides a group of fields under a legend, as a shadcn/ui component for the Fieldset of MyGo.
Package fieldset provides a group of fields under a legend, as a shadcn/ui component for the Fieldset of MyGo.
fileupload
Package fileupload provides the file upload of BoardUI for the MyGo native toolkit: a drop zone you click to pick a file, which then uploads with a progress ring and a percentage until it is done.
Package fileupload provides the file upload of BoardUI for the MyGo native toolkit: a drop zone you click to pick a file, which then uploads with a progress ring and a percentage until it is done.
findbar
Package findbar provides a bar to find within a document, as a shadcn/ui component for the FindBar of MyGo: a search field, the count and the current match, and buttons to step to the next and the previous.
Package findbar provides a bar to find within a document, as a shadcn/ui component for the FindBar of MyGo: a search field, the count and the current match, and buttons to step to the next and the previous.
floatinglabelinput
Package floatinglabelinput provides the Floating Label Input expansion of shadcn/ui, a Material-style field: the label sits inside the empty field as a placeholder, and floats to the top border on focus or once something is typed.
Package floatinglabelinput provides the Floating Label Input expansion of shadcn/ui, a Material-style field: the label sits inside the empty field as a placeholder, and floats to the top border on focus or once something is typed.
form
Package form provides a form whose field labels line up, in the way macOS draws them: a column of fields, with the label of each to its left, right-aligned to the widest.
Package form provides a form whose field labels line up, in the way macOS draws them: a column of fields, with the label of each to its left, right-aligned to the widest.
grid
Package grid provides a grid layout, as a shadcn/ui component for the Grid of MyGo: children placed in cells of columns, which they fill in order, or place themselves in with the placement of a cell.
Package grid provides a grid layout, as a shadcn/ui component for the Grid of MyGo: children placed in cells of columns, which they fill in order, or place themselves in with the placement of a cell.
gridview
Package gridview provides a scrolling grid of items, as a shadcn/ui component for the GridView of MyGo: as many columns as items of a minimum width fit, a click chooses an item, and the arrow keys move the choice around.
Package gridview provides a scrolling grid of items, as a shadcn/ui component for the GridView of MyGo: as many columns as items of a minimum width fit, a click chooses an item, and the arrow keys move the choice around.
headingwithanchor
Package headingwithanchor provides the Heading With Anchor expansion of shadcn/ui: a heading with a link button beside it, which copies the anchor of the section to the clipboard, as a document's headings deep-link to their place.
Package headingwithanchor provides the Heading With Anchor expansion of shadcn/ui: a heading with a link button beside it, which copies the anchor of the section to the clipboard, as a document's headings deep-link to their place.
icon
Package icon provides an SVG shown as an icon, in the color of the text around it, for the Icon of MyGo.
Package icon provides an SVG shown as an icon, in the color of the text around it, for the Icon of MyGo.
image
Package image provides a bitmap or an SVG shown as a picture, for the Image of MyGo.
Package image provides a bitmap or an SVG shown as a picture, for the Image of MyGo.
infinitescroll
Package infinitescroll provides the Infinite Scroll expansion of shadcn/ui: a list that loads the next page of rows as its end comes near, so scrolling never runs out, as a feed or a log of a long stream does.
Package infinitescroll provides the Infinite Scroll expansion of shadcn/ui: a list that loads the next page of rows as its end comes near, so scrolling never runs out, as a feed or a log of a long stream does.
inlinecode
Package inlinecode provides the Inline Code expansion of shadcn/ui: a code chip in the prose, as a command is written inside a sentence, with a muted face and the monospace font.
Package inlinecode provides the Inline Code expansion of shadcn/ui: a code chip in the prose, as a command is written inside a sentence, with a muted face and the monospace font.
input
Package input provides a shadcn/ui-style text field for the MyGo native toolkit: a single-line TextInput.
Package input provides a shadcn/ui-style text field for the MyGo native toolkit: a single-line TextInput.
inputgroup
Package inputgroup provides a shadcn/ui-style Input Group: a field with an icon or a text adornment at either end, as a search field with a magnifier, or a currency field with a "$".
Package inputgroup provides a shadcn/ui-style Input Group: a field with an icon or a text adornment at either end, as a search field with a magnifier, or a currency field with a "$".
inputotp
Package inputotp provides a shadcn/ui-style input for a one-time password, or any short code: a row of cells, one character each, that typing fills in turn, as a verification code a message brings.
Package inputotp provides a shadcn/ui-style input for a one-time password, or any short code: a row of cells, one character each, that typing fills in turn, as a verification code a message brings.
interactivestepper
Package interactivestepper provides the Interactive Stepper expansion of shadcn/ui: a set of steps that show how far a multi-step process has gone, each reachable from the indicator, with Back and Next moving between them.
Package interactivestepper provides the Interactive Stepper expansion of shadcn/ui: a set of steps that show how far a multi-step process has gone, each reachable from the indicator, with Back and Next moving between them.
item
Package item provides a shadcn/ui-style Item: a row of a list or a settings screen, with a media tile, a title and a description, and actions at the far end.
Package item provides a shadcn/ui-style Item: a row of a list or a settings screen, with a media tile, a title and a description, and actions at the far end.
kbd
Package kbd provides a key of the keyboard shown as a chip, for the Kbd of shadcn/ui: the key's label in a small rounded box, as in the shortcut hint "⌘K" of a menu item.
Package kbd provides a key of the keyboard shown as a chip, for the Kbd of shadcn/ui: the key's label in a small rounded box, as in the shortcut hint "⌘K" of a menu item.
label
Package label provides a standalone label of a control, for the Label of shadcn/ui: a line of text in the medium weight, as a form's field names its field.
Package label provides a standalone label of a control, for the Label of shadcn/ui: a line of text in the medium weight, as a form's field names its field.
linechart
Package linechart provides the RevenueChartCard of BoardUI for the MyGo native toolkit: a card of a year of monthly values drawn against the year before.
Package linechart provides the RevenueChartCard of BoardUI for the MyGo native toolkit: a card of a year of monthly values drawn against the year before.
link
Package link provides a text that opens a URL in the browser when it is clicked, as a shadcn/ui component for the Link of MyGo.
Package link provides a text that opens a URL in the browser when it is clicked, as a shadcn/ui component for the Link of MyGo.
list
Package list provides a scrolling list of rows, from the mygo List widget.
Package list provides a scrolling list of rows, from the mygo List widget.
loadingbutton
Package loadingbutton provides the Loading Button expansion of shadcn/ui: a button that turns into a spinner while its work runs, and will not be clicked again until it is done.
Package loadingbutton provides the Loading Button expansion of shadcn/ui: a button that turns into a spinner while its work runs, and will not be clicked again until it is done.
log
Package log provides the AgentLog of BoardUI for the MyGo native toolkit: a transcript of an agent's work, each line joined to the next by a curved tree guide, with a working row of stars while the agent is still going.
Package log provides the AgentLog of BoardUI for the MyGo native toolkit: a transcript of an agent's work, each line joined to the next by a curved tree guide, with a working row of stars while the agent is still going.
magicback
Package magicback provides the Magic Back Button expansion of shadcn/ui: a round back button that returns the app to where it came from, or to its home when it has no history to go back to, as the web button sends a first-time visitor to the homepage.
Package magicback provides the Magic Back Button expansion of shadcn/ui: a round back button that returns the app to where it came from, or to its home when it has no history to go back to, as the web button sends a first-time visitor to the homepage.
markdown
Package markdown renders CommonMark with GFM tables, strikethrough, autolinks and read-only task checkboxes into MyGo text, ported from the markdown view of the onevra component library (MIT).
Package markdown renders CommonMark with GFM tables, strikethrough, autolinks and read-only task checkboxes into MyGo text, ported from the markdown view of the onevra component library (MIT).
marker
Package marker provides a shadcn/ui-style Marker: a short inline label of a conversation, as "AI" or "You" before a turn of a chat.
Package marker provides a shadcn/ui-style Marker: a short inline label of a conversation, as "AI" or "You" before a turn of a chat.
menu
Package menu provides a shadcn/ui-style Menu: a button showing a label and an arrow, which opens a menu below it, as the pointer goes down on it, or for Enter, Space or Down while it has the focus.
Package menu provides a shadcn/ui-style Menu: a button showing a label and an arrow, which opens a menu below it, as the pointer goes down on it, or for Enter, Space or Down while it has the focus.
menubar
Package menubar provides a shadcn/ui-style Menu Bar: a row of flat buttons, each opening a menu below it, as the pointer goes down on it or for Enter, Space or Down while it has the focus.
Package menubar provides a shadcn/ui-style Menu Bar: a row of flat buttons, each opening a menu below it, as the pointer goes down on it or for Enter, Space or Down while it has the focus.
message
Package message provides a shadcn/ui-style Message: one turn of a conversation, with the avatar, the sender line, the bubble and the status line around the message surface.
Package message provides a shadcn/ui-style Message: one turn of a conversation, with the avatar, the sender line, the bubble and the status line around the message surface.
messagescroller
Package messagescroller provides a shadcn/ui-style Message Scroller: the scroll viewport of a conversation, which follows the new messages while the reader is at the end and lets the reader scroll back to read, then offers a button back to the newest.
Package messagescroller provides a shadcn/ui-style Message Scroller: the scroll viewport of a conversation, which follows the new messages while the reader is at the end and lets the reader scroll back to read, then offers a button back to the newest.
meter
Package meter provides a shadcn/ui-style meter: a bar that shows a measure against its range, colored by how near the top it is, with a label and a live readout, from the Meter of MyGo.
Package meter provides a shadcn/ui-style meter: a bar that shows a measure against its range, colored by how near the top it is, with a label and a live readout, from the Meter of MyGo.
multiselect
Package multiselect provides the Multiple Selector expansion of shadcn/ui: a field choosing several of its options, whose trigger lists them, and a popup with a check box for each.
Package multiselect provides the Multiple Selector expansion of shadcn/ui: a field choosing several of its options, whose trigger lists them, and a popup with a check box for each.
nativeselect
Package nativeselect provides a shadcn/ui-style Native Select: a drop-down that uses the platform's own menu, as a native HTML select does on the web, for the behavior and the look of the system.
Package nativeselect provides a shadcn/ui-style Native Select: a drop-down that uses the platform's own menu, as a native HTML select does on the web, for the behavior and the look of the system.
navigationmenu
Package navigationmenu provides a shadcn/ui-style Navigation Menu: the bar of links across the top of a site, where a link with children opens a panel below it with its links.
Package navigationmenu provides a shadcn/ui-style Navigation Menu: the bar of links across the top of a site, where a link with children opens a panel below it with its links.
notificationcenter
Package notificationcenter provides the NotificationCenter of BoardUI for the MyGo native toolkit: a panel of notifications with a title, an unread count, a mark-all-read control, and tabs that filter the list.
Package notificationcenter provides the NotificationCenter of BoardUI for the MyGo native toolkit: a panel of notifications with a title, an unread count, a mark-all-read control, and tabs that filter the list.
numberinput
Package numberinput provides a shadcn/ui-style NumberInput: a field for a number between bounds, which the arrows and the buttons beside it step by step.
Package numberinput provides a shadcn/ui-style NumberInput: a field for a number between bounds, which the arrows and the buttons beside it step by step.
pagination
Package pagination provides the pagination of BoardUI for the MyGo native toolkit: previous and next buttons and the page numbers, with the overflow of a long list of pages collapsing into dots around the current page.
Package pagination provides the pagination of BoardUI for the MyGo native toolkit: previous and next buttons and the page numbers, with the overflow of a long list of pages collapsing into dots around the current page.
popover
Package popover provides a shadcn/ui-style Popover: a panel that shows below the element Trigger draws, while *Open is true, and that a click on the trigger opens and closes.
Package popover provides a shadcn/ui-style Popover: a panel that shows below the element Trigger draws, while *Open is true, and that a click on the trigger opens and closes.
progress
Package progress provides a shadcn/ui-style progress bar with a label and a live readout, from the Progress of MyGo.
Package progress provides a shadcn/ui-style progress bar with a label and a live readout, from the Progress of MyGo.
questionnaire
Package questionnaire provides a shadcn/ui-style Questionnaire: a form of questions, one at a time, as onboarding asks them.
Package questionnaire provides a shadcn/ui-style Questionnaire: a form of questions, one at a time, as onboarding asks them.
radio
Package radio provides a shadcn/ui-style radio group: a column of options, of which one is chosen.
Package radio provides a shadcn/ui-style radio group: a column of options, of which one is chosen.
rangeslider
Package rangeslider provides a shadcn/ui-style range slider: a track with two knobs that set the low and the high of a range, with a label and a live readout, from the RangeSlider of MyGo.
Package rangeslider provides a shadcn/ui-style range slider: a track with two knobs that set the low and the high of a range, with a label and a live readout, from the RangeSlider of MyGo.
rating
Package rating provides a shadcn/ui-style Rating: a row of stars that show and set a score, by a click or the arrows.
Package rating provides a shadcn/ui-style Rating: a row of stars that show and set a score, by a click or the arrows.
responsivemodal
Package responsivemodal provides the Responsive Modal expansion of shadcn/ui: a dialog that shows centered on a wide window, and as a bottom sheet on a narrow one, as a phone app's sheet rises from the bottom.
Package responsivemodal provides the Responsive Modal expansion of shadcn/ui: a dialog that shows centered on a wide window, and as a bottom sheet on a narrow one, as a phone app's sheet rises from the bottom.
richtext
Package richtext provides a text of styled runs, as a shadcn/ui component for the RichText of MyGo: spans with their own weight, color, underline or background, over the style of the text around them.
Package richtext provides a text of styled runs, as a shadcn/ui component for the RichText of MyGo: spans with their own weight, color, underline or background, over the style of the text around them.
scroll
Package scroll provides a container that scrolls its content, as a shadcn/ui component for the Scroll of MyGo.
Package scroll provides a container that scrolls its content, as a shadcn/ui component for the Scroll of MyGo.
scrollboth
Package scrollboth provides a container that scrolls its content both ways, as a canvas or a wide table does, for the ScrollBoth of MyGo.
Package scrollboth provides a container that scrolls its content both ways, as a canvas or a wide table does, for the ScrollBoth of MyGo.
scrollhorizontal
Package scrollhorizontal provides a container that scrolls its content horizontally, as a shadcn/ui component for the ScrollHorizontal of MyGo.
Package scrollhorizontal provides a container that scrolls its content horizontally, as a shadcn/ui component for the ScrollHorizontal of MyGo.
searchfield
Package searchfield provides a shadcn/ui-style SearchField: a field for searching, with a magnifying glass and a button that clears the text.
Package searchfield provides a shadcn/ui-style SearchField: a field for searching, with a magnifying glass and a button that clears the text.
segmented
Package segmented provides a segmented control: a row of segments of which one is chosen, as a shadcn/ui component for the Segmented of MyGo, a switch between views.
Package segmented provides a segmented control: a row of segments of which one is chosen, as a shadcn/ui component for the Segmented of MyGo, a switch between views.
select
Package selector provides a shadcn/ui-style drop-down: a trigger button that opens a list of options to choose one from.
Package selector provides a shadcn/ui-style drop-down: a trigger button that opens a list of options to choose one from.
separator
Package separator provides a shadcn/ui-style Separator: a thin line that divides content, horizontal or vertical.
Package separator provides a shadcn/ui-style Separator: a thin line that divides content, horizontal or vertical.
settings
Package settings composes an application settings surface from a catalog of categories, groups and items, ported from the settings view of the onevra component library (MIT).
Package settings composes an application settings surface from a catalog of categories, groups and items, ported from the settings view of the onevra component library (MIT).
sheet
Package sheet provides a shadcn/ui-style Sheet: a panel that slides over the window from an edge, with the rest of the window dimmed and inert while it shows.
Package sheet provides a shadcn/ui-style Sheet: a panel that slides over the window from an edge, with the rest of the window dimmed and inert while it shows.
sidebar
Package sidebar provides a shadcn/ui-style Sidebar: a rail of sections and items at the side of a window, as Finder's sidebar shows one.
Package sidebar provides a shadcn/ui-style Sidebar: a rail of sections and items at the side of a window, as Finder's sidebar shows one.
skeleton
Package skeleton provides a placeholder of content still loading, for the Skeleton of shadcn/ui: a rounded bar in the muted color that pulses softly while it stands in for the content.
Package skeleton provides a placeholder of content still loading, for the Skeleton of shadcn/ui: a rounded bar in the muted color that pulses softly while it stands in for the content.
slider
Package slider provides a shadcn/ui-style slider: a track and a knob that set a number, with a label and a live readout above it.
Package slider provides a shadcn/ui-style slider: a track and a knob that set a number, with a label and a live readout above it.
spinner
Package spinner provides a shadcn/ui-style spinner: a ring of spokes that turns while work goes on, from the Spinner of MyGo.
Package spinner provides a shadcn/ui-style spinner: a ring of spokes that turns while work goes on, from the Spinner of MyGo.
split
Package split provides resizable panes, from the mygo Split widget.
Package split provides resizable panes, from the mygo Split widget.
statcard
Package statcard provides the KPI stat cards of BoardUI for the MyGo native toolkit: a grid of metric cards in two looks, the compact plain card and the display-size footer card.
Package statcard provides the KPI stat cards of BoardUI for the MyGo native toolkit: a grid of metric cards in two looks, the compact plain card and the display-size footer card.
stepper
Package stepper provides a shadcn/ui-style stepper: a number with two arrow buttons that step it, and a label and a live readout, from the Stepper of MyGo.
Package stepper provides a shadcn/ui-style stepper: a number with two arrow buttons that step it, and a label and a live readout, from the Stepper of MyGo.
switch
Package switcher provides a shadcn/ui-style switch with a label, from the Switch of MyGo.
Package switcher provides a shadcn/ui-style switch with a label, from the Switch of MyGo.
table
Package table provides a shadcn/ui-style data table for the MyGo native toolkit, on top of the Table of MyGo: a bordered box with a header band, rows that highlight under the pointer, and a chosen row in the accent color.
Package table provides a shadcn/ui-style data table for the MyGo native toolkit, on top of the Table of MyGo: a bordered box with a header band, rows that highlight under the pointer, and a chosen row in the accent color.
tabs
Package tabs provides a shadcn/ui-style tab list: a row of triggers that switch a pane of content, of which one is chosen.
Package tabs provides a shadcn/ui-style tab list: a row of triggers that switch a pane of content, of which one is chosen.
textarea
Package textarea provides a shadcn/ui-style multi-line text field for the MyGo native toolkit.
Package textarea provides a shadcn/ui-style multi-line text field for the MyGo native toolkit.
thinking
Package thinking provides the AgentThinking indicator of BoardUI for the MyGo native toolkit: a row of a working indicator, a label and an elapsed timer, drawn while an agent works on a response.
Package thinking provides the AgentThinking indicator of BoardUI for the MyGo native toolkit: a row of a working indicator, a label and an elapsed timer, drawn while an agent works on a response.
timeinput
Package timeinput provides a shadcn/ui-style TimeInput: a field of the time of day, whose hours and minutes each take the focus, stepped by the arrows and set by the digits typed.
Package timeinput provides a shadcn/ui-style TimeInput: a field of the time of day, whose hours and minutes each take the focus, stepped by the arrows and set by the digits typed.
toast
Package toast provides shadcn/ui-style toasts for the MyGo native toolkit: a viewport to draw them in, and a way to push them.
Package toast provides shadcn/ui-style toasts for the MyGo native toolkit: a viewport to draw them in, and a way to push them.
toggle
Package toggle provides a shadcn/ui-style Toggle: a button that stays pressed while it is on, as Bold in an editor's toolbar, which a click or Space while it has the focus turns over.
Package toggle provides a shadcn/ui-style Toggle: a button that stays pressed while it is on, as Bold in an editor's toolbar, which a click or Space while it has the focus turns over.
togglegroup
Package togglegroup provides a shadcn/ui-style ToggleGroup: a row of toggle buttons drawn joined as the segments of one control, as Bold, Italic and Underline in an editor's toolbar.
Package togglegroup provides a shadcn/ui-style ToggleGroup: a row of toggle buttons drawn joined as the segments of one control, as Bold, Italic and Underline in an editor's toolbar.
tokenfield
Package tokenfield provides a field of tokens, as of tags or the recipients of a mail, as a shadcn/ui component for the TokenField of MyGo: the tokens show as chips, each with a button taking it out, and typing adds one on Enter or a comma, the suggestions of what was typed showing below it, of those not already chips.
Package tokenfield provides a field of tokens, as of tags or the recipients of a mail, as a shadcn/ui component for the TokenField of MyGo: the tokens show as chips, each with a button taking it out, and typing adds one on Enter or a comma, the suggestions of what was typed showing below it, of those not already chips.
toolbar
Package toolbar provides a row of actions along the top of a window, from the mygo Toolbar widget.
Package toolbar provides a row of actions along the top of a window, from the mygo Toolbar widget.
tooltip
Package tooltip provides a shadcn/ui-style Tooltip: a hint that shows once the pointer has rested on the anchor for a moment, and goes as the pointer leaves it or presses it, and with Escape, until the pointer or the focus comes back.
Package tooltip provides a shadcn/ui-style Tooltip: a hint that shows once the pointer has rested on the anchor for a moment, and goes as the pointer leaves it or presses it, and with Escape, until the pointer or the focus comes back.
tree
Package tree provides a hierarchical list whose branches open and close, from the mygo Tree and TreeItem widgets.
Package tree provides a hierarchical list whose branches open and close, from the mygo Tree and TreeItem widgets.
typewriter
Package typewriter provides the Typewriter expansion of shadcn/ui: a text that types itself out, a character at a time, with a blinking caret.
Package typewriter provides the Typewriter expansion of shadcn/ui: a text that types itself out, a character at a time, with a blinking caret.
examples
agent command
The agent example shows the appshell, chat, composer, log, notificationcenter and thinking components together in a starter for an agentic app: a demo model streams an answer in the chat, the log reveals its steps, and the notifications filter by tab.
The agent example shows the appshell, chat, composer, log, notificationcenter and thinking components together in a starter for an agentic app: a demo model streams an answer in the chat, the log reveals its steps, and the notifications filter by tab.
agent/cmd/snapshot command
Command snapshot renders the agent example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the agent example headless into PNG files, so the components can be seen without opening a window:
agent/view
Package view builds the agent example: a window of MyGo native UI that shows the appshell, chat, composer, log, notificationcenter and thinking components together in a starter for an agentic app.
Package view builds the agent example: a window of MyGo native UI that shows the appshell, chat, composer, log, notificationcenter and thinking components together in a starter for an agentic app.
composer command
The composer example shows the autocomplete, tokenfield, calendar and checkboxgroup components together in a form creating an appointment: the task field completes what is typed, the tag field keeps a set of tags, the calendar picks the due day, and the reminder group chooses how to be reminded.
The composer example shows the autocomplete, tokenfield, calendar and checkboxgroup components together in a form creating an appointment: the task field completes what is typed, the tag field keeps a set of tags, the calendar picks the due day, and the reminder group chooses how to be reminded.
composer/cmd/snapshot command
Command snapshot renders the composer example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the composer example headless into PNG files, so the components can be seen without opening a window:
composer/view
Package view builds the composer example: a window of MyGo native UI that shows the autocomplete, tokenfield, calendar and checkboxgroup components together in a form creating an appointment.
Package view builds the composer example: a window of MyGo native UI that shows the autocomplete, tokenfield, calendar and checkboxgroup components together in a form creating an appointment.
conversation command
The conversation example shows the marker and attachment components of uix together in a chat with a support agent: the markers name the turns, and the attachments are the file of the last turn, uploading as the page shows.
The conversation example shows the marker and attachment components of uix together in a chat with a support agent: the markers name the turns, and the attachments are the file of the last turn, uploading as the page shows.
conversation/cmd/snapshot command
Command snapshot renders the conversation example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the conversation example headless into PNG files, so the components can be seen without opening a window:
conversation/view
Package view builds the conversation example: a window of MyGo native UI that shows the marker and attachment components of uix together in a chat with a support agent.
Package view builds the conversation example: a window of MyGo native UI that shows the marker and attachment components of uix together in a chat with a support agent.
dashboard command
The dashboard example shows the appshell, statcard, linechart and barchart components together in a store overview: the metric cards up top, the two charts side by side, and the display cards under them.
The dashboard example shows the appshell, statcard, linechart and barchart components together in a store overview: the metric cards up top, the two charts side by side, and the display cards under them.
dashboard/cmd/snapshot command
Command snapshot renders the dashboard example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the dashboard example headless into PNG files, so the components can be seen without opening a window:
dashboard/view
Package view builds the dashboard example: a window of MyGo native UI that shows the appshell, statcard, linechart and barchart components together as a store overview.
Package view builds the dashboard example: a window of MyGo native UI that shows the appshell, statcard, linechart and barchart components together as a store overview.
docreader command
Example docreader opens a window of MyGo native UI that shows the richtext, editabletext, findbar and segmented components together in a document reader.
Example docreader opens a window of MyGo native UI that shows the richtext, editabletext, findbar and segmented components together in a document reader.
docreader/cmd/snapshot command
Command snapshot renders the docreader example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the docreader example headless into PNG files, so the components can be seen without opening a window:
docreader/view
Package view builds the docreader example: a window of MyGo native UI that shows the richtext, editabletext, findbar and segmented components together in a document reader.
Package view builds the docreader example: a window of MyGo native UI that shows the richtext, editabletext, findbar and segmented components together in a document reader.
editor command
Example editor opens a window of MyGo native UI that shows the sidebar, togglegroup, tooltip and menu components together in a note editor.
Example editor opens a window of MyGo native UI that shows the sidebar, togglegroup, tooltip and menu components together in a note editor.
editor/cmd/snapshot command
Command snapshot renders the editor example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the editor example headless into PNG files, so the components can be seen without opening a window:
editor/view
Package view builds the editor example: a window of MyGo native UI that shows the sidebar, togglegroup, tooltip and menu components together in a note editor.
Package view builds the editor example: a window of MyGo native UI that shows the sidebar, togglegroup, tooltip and menu components together in a note editor.
events command
Example events opens a window of MyGo native UI that shows the datepicker, timeinput, colorpicker and toggle components together: an event whose date, time and color the pickers set and whose reminder a toggle arms, with a summary line that reflects every change.
Example events opens a window of MyGo native UI that shows the datepicker, timeinput, colorpicker and toggle components together: an event whose date, time and color the pickers set and whose reminder a toggle arms, with a summary line that reflects every change.
events/cmd/snapshot command
Command snapshot renders the events example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the events example headless into PNG files, so the components can be seen without opening a window:
events/view
Package view builds the events example: a window of MyGo native UI that shows the datepicker, timeinput, colorpicker and toggle components together, as an event the fields edit and a summary line reflects.
Package view builds the events example: a window of MyGo native UI that shows the datepicker, timeinput, colorpicker and toggle components together, as an event the fields edit and a summary line reflects.
explorer command
Example explorer opens a window of MyGo native UI that shows the toolbar, tree, split and list components together in a small file browser.
Example explorer opens a window of MyGo native UI that shows the toolbar, tree, split and list components together in a small file browser.
explorer/cmd/snapshot command
Command snapshot renders the explorer example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the explorer example headless into PNG files, so the components can be seen without opening a window:
explorer/view
Package view builds the explorer example: a window of MyGo native UI that shows the toolbar, tree, split and list components together in a small file browser.
Package view builds the explorer example: a window of MyGo native UI that shows the toolbar, tree, split and list components together in a small file browser.
feedback command
Example feedback opens a window of MyGo native UI that shows the feedback controls of uix together: badge, progress, toast and dialog, plus the button they build on.
Example feedback opens a window of MyGo native UI that shows the feedback controls of uix together: badge, progress, toast and dialog, plus the button they build on.
feedback/cmd/snapshot command
Command snapshot renders the feedback example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the feedback example headless into PNG files, so the components can be seen without opening a window:
feedback/view
Package view builds the feedback example: a window of MyGo native UI that shows the feedback controls of uix together.
Package view builds the feedback example: a window of MyGo native UI that shows the feedback controls of uix together.
fields command
The fields example shows the field components of the shadcn/ui expansions together in a form: the floating label inputs, the auto-size text area, the date-time picker and the multiple selector.
The fields example shows the field components of the shadcn/ui expansions together in a form: the floating label inputs, the auto-size text area, the date-time picker and the multiple selector.
fields/cmd/snapshot command
Command snapshot renders the fields example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the fields example headless into PNG files, so the components can be seen without opening a window:
fields/view
Package view builds the fields example: a form of MyGo native UI that shows the field components of the shadcn/ui expansions together — the floating label inputs, the auto-size text area, the date-time picker and the multiple selector.
Package view builds the fields example: a form of MyGo native UI that shows the field components of the shadcn/ui expansions together — the floating label inputs, the auto-size text area, the date-time picker and the multiple selector.
files command
Example files opens a window of MyGo native UI that shows the table component at work: a file browser whose columns sort, whose rows are chosen, and whose chosen row opens with Enter or a double click.
Example files opens a window of MyGo native UI that shows the table component at work: a file browser whose columns sort, whose rows are chosen, and whose chosen row opens with Enter or a double click.
files/cmd/snapshot command
Command snapshot renders the files example headless into PNG files, so the table can be seen without opening a window:
Command snapshot renders the files example headless into PNG files, so the table can be seen without opening a window:
files/view
Package view builds the files example: a window of MyGo native UI that shows the table component at work, as a small file browser.
Package view builds the files example: a window of MyGo native UI that shows the table component at work, as a small file browser.
forms command
Example forms opens a window of MyGo native UI that shows the form controls of uix together: field, input, select, slider, switch, checkbox and button.
Example forms opens a window of MyGo native UI that shows the form controls of uix together: field, input, select, slider, switch, checkbox and button.
forms/cmd/snapshot command
Command snapshot renders the forms example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the forms example headless into PNG files, so the components can be seen without opening a window:
forms/view
Package view builds the forms example: a window of MyGo native UI that shows the form controls of uix together.
Package view builds the forms example: a window of MyGo native UI that shows the form controls of uix together.
gallery command
The gallery example shows the grid, gridview, scroll and fieldset components together in a file gallery: two field sets filter the files by type and sort them by name or date, and a grid view shows the files that remain, of which a click chooses one.
The gallery example shows the grid, gridview, scroll and fieldset components together in a file gallery: two field sets filter the files by type and sort them by name or date, and a grid view shows the files that remain, of which a click chooses one.
gallery/cmd/snapshot command
Command snapshot renders the gallery example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the gallery example headless into PNG files, so the components can be seen without opening a window:
gallery/view
Package view builds the gallery example: a window of MyGo native UI that shows the grid, gridview, scroll and fieldset components together in a file gallery.
Package view builds the gallery example: a window of MyGo native UI that shows the grid, gridview, scroll and fieldset components together in a file gallery.
helpcenter command
Example helpcenter opens a window of MyGo native UI that shows the breadcrumbs, accordion, collapsible and popover components together in a help page.
Example helpcenter opens a window of MyGo native UI that shows the breadcrumbs, accordion, collapsible and popover components together in a help page.
helpcenter/cmd/snapshot command
Command snapshot renders the help center example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the help center example headless into PNG files, so the components can be seen without opening a window:
helpcenter/view
Package view builds the help center example: a window of MyGo native UI that shows the breadcrumbs, accordion, collapsible and popover components together in a help page.
Package view builds the help center example: a window of MyGo native UI that shows the breadcrumbs, accordion, collapsible and popover components together in a help page.
inputs command
The inputs example shows the button group, input group, one-time password, key and label components of uix together in one page: the alignment to choose, the amount to type with its currency, the verification code its cells take, and the shortcut keys the actions hint at.
The inputs example shows the button group, input group, one-time password, key and label components of uix together in one page: the alignment to choose, the amount to type with its currency, the verification code its cells take, and the shortcut keys the actions hint at.
inputs/cmd/snapshot command
Command snapshot renders the inputs example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the inputs example headless into PNG files, so the components can be seen without opening a window:
inputs/view
Package view builds the inputs example: a window of MyGo native UI that shows the button group, input group, one-time password, key and label components of uix together in one page.
Package view builds the inputs example: a window of MyGo native UI that shows the button group, input group, one-time password, key and label components of uix together in one page.
loading command
The loading example shows the remaining components of the shadcn/ui expansions together in a checkout: the magic back button, the interactive stepper with the infinite-scroll catalog and the loading button, and the responsive modal that confirms the order.
The loading example shows the remaining components of the shadcn/ui expansions together in a checkout: the magic back button, the interactive stepper with the infinite-scroll catalog and the loading button, and the responsive modal that confirms the order.
loading/cmd/snapshot command
Command snapshot renders the loading example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the loading example headless into PNG files, so the components can be seen without opening a window:
loading/view
Package view builds the loading example: a checkout of MyGo native UI that shows the remaining components of the shadcn/ui expansions together — the magic back button, the interactive stepper with the infinite-scroll catalog and the loading button, and the responsive modal that confirms the order.
Package view builds the loading example: a checkout of MyGo native UI that shows the remaining components of the shadcn/ui expansions together — the magic back button, the interactive stepper with the infinite-scroll catalog and the loading button, and the responsive modal that confirms the order.
menus command
The menus example shows the context menu, menu bar and navigation menu components of uix together in one page: the bar across the top with the File and Edit menus, the navigation bar with the panel of links, and the box whose right-click opens a context menu.
The menus example shows the context menu, menu bar and navigation menu components of uix together in one page: the bar across the top with the File and Edit menus, the navigation bar with the panel of links, and the box whose right-click opens a context menu.
menus/cmd/snapshot command
Command snapshot renders the menus example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the menus example headless into PNG files, so the components can be seen without opening a window:
menus/view
Package view builds the menus example: a window of MyGo native UI that shows the context menu, menu bar and navigation menu components of uix together in one page.
Package view builds the menus example: a window of MyGo native UI that shows the context menu, menu bar and navigation menu components of uix together in one page.
messaging command
The messaging example shows the message family of uix together: a conversation in the message scroller, whose rows are the message turns with their bubbles and avatars, and the composer below.
The messaging example shows the message family of uix together: a conversation in the message scroller, whose rows are the message turns with their bubbles and avatars, and the composer below.
messaging/cmd/snapshot command
Command snapshot renders the messaging example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the messaging example headless into PNG files, so the components can be seen without opening a window:
messaging/view
Package view builds the messaging example: a window of MyGo native UI that shows the message family of uix together — the message scroller, the message rows with their bubbles and avatars, and the composer below.
Package view builds the messaging example: a window of MyGo native UI that shows the message family of uix together — the message scroller, the message rows with their bubbles and avatars, and the composer below.
monitor command
Example monitor opens a window of MyGo native UI that shows the meter, spinner, rangeslider and stepper components together in a system monitor.
Example monitor opens a window of MyGo native UI that shows the meter, spinner, rangeslider and stepper components together in a system monitor.
monitor/cmd/snapshot command
Command snapshot renders the monitor example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the monitor example headless into PNG files, so the components can be seen without opening a window:
monitor/view
Package view builds the monitor example: a window of MyGo native UI that shows the meter, spinner, rangeslider and stepper components together in a system monitor.
Package view builds the monitor example: a window of MyGo native UI that shows the meter, spinner, rangeslider and stepper components together in a system monitor.
navigation command
The navigation example shows the carousel, pagination and file upload components of BoardUI together in one page: the slides to flip through, the pages to step through, and the file zone to fill in.
The navigation example shows the carousel, pagination and file upload components of BoardUI together in one page: the slides to flip through, the pages to step through, and the file zone to fill in.
navigation/cmd/snapshot command
Command snapshot renders the navigation example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the navigation example headless into PNG files, so the components can be seen without opening a window:
navigation/view
Package view builds the navigation example: a window of MyGo native UI that shows the carousel, pagination and file upload components of BoardUI together in one page.
Package view builds the navigation example: a window of MyGo native UI that shows the carousel, pagination and file upload components of BoardUI together in one page.
overlays command
The overlays example shows the sheet, drawer and command components of uix together in one page: the side panel of filters, the drawer that confirms an action, and the command palette that runs a command.
The overlays example shows the sheet, drawer and command components of uix together in one page: the side panel of filters, the drawer that confirms an action, and the command palette that runs a command.
overlays/cmd/snapshot command
Command snapshot renders the overlays example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the overlays example headless into PNG files, so the components can be seen without opening a window:
overlays/view
Package view builds the overlays example: a window of MyGo native UI that shows the sheet, drawer and command components of uix together in one page.
Package view builds the overlays example: a window of MyGo native UI that shows the sheet, drawer and command components of uix together in one page.
placeholders command
The placeholders example shows the skeleton, empty and aspect-ratio components of uix together in one page: the article loading, the search that found nothing, and the video keeping its ratio.
The placeholders example shows the skeleton, empty and aspect-ratio components of uix together in one page: the article loading, the search that found nothing, and the video keeping its ratio.
placeholders/cmd/snapshot command
Command snapshot renders the placeholders example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the placeholders example headless into PNG files, so the components can be seen without opening a window:
placeholders/view
Package view builds the placeholders example: a window of MyGo native UI that shows the skeleton, empty and aspect-ratio components of uix together in one page.
Package view builds the placeholders example: a window of MyGo native UI that shows the skeleton, empty and aspect-ratio components of uix together in one page.
preferences command
The preferences example shows the item, native select and alert dialog components of uix together, as a settings screen for an account: the item group lists the sections, the native select chooses a language, and the destructive item opens the alert dialog that confirms deleting the account.
The preferences example shows the item, native select and alert dialog components of uix together, as a settings screen for an account: the item group lists the sections, the native select chooses a language, and the destructive item opens the alert dialog that confirms deleting the account.
preferences/cmd/snapshot command
Command snapshot renders the preferences example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the preferences example headless into PNG files, so the components can be seen without opening a window:
preferences/view
Package view builds the preferences example: a window of MyGo native UI that shows the item, native select and alert dialog components of uix together, as a settings screen for an account.
Package view builds the preferences example: a window of MyGo native UI that shows the item, native select and alert dialog components of uix together, as a settings screen for an account.
profile command
Example profile opens a window of MyGo native UI that shows the card, avatar, separator and alert components together: a profile page with a follow button that swaps its label and shows a success alert.
Example profile opens a window of MyGo native UI that shows the card, avatar, separator and alert components together: a profile page with a follow button that swaps its label and shows a success alert.
profile/cmd/snapshot command
Command snapshot renders the profile example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the profile example headless into PNG files, so the components can be seen without opening a window:
profile/view
Package view builds the profile example: a window of MyGo native UI that shows the card, avatar, separator and alert components together, as a profile page.
Package view builds the profile example: a window of MyGo native UI that shows the card, avatar, separator and alert components together, as a profile page.
questionnaire command
The questionnaire example shows the questionnaire component of uix alone: an onboarding form of three questions, one at a time, with the progress bar up top and Back and Next under the choices.
The questionnaire example shows the questionnaire component of uix alone: an onboarding form of three questions, one at a time, with the progress bar up top and Back and Next under the choices.
questionnaire/cmd/snapshot command
Command snapshot renders the questionnaire example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the questionnaire example headless into PNG files, so the components can be seen without opening a window:
questionnaire/view
Package view builds the questionnaire example: a window of MyGo native UI that shows the questionnaire component of uix alone, as an onboarding form of three questions.
Package view builds the questionnaire example: a window of MyGo native UI that shows the questionnaire component of uix alone, as an onboarding form of three questions.
settings command
Example settings opens a window of MyGo native UI that shows the navigation controls of uix together: tabs, dropdown and radio, plus the switch, check box and badge they sit with.
Example settings opens a window of MyGo native UI that shows the navigation controls of uix together: tabs, dropdown and radio, plus the switch, check box and badge they sit with.
settings/cmd/snapshot command
Command snapshot renders the settings example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the settings example headless into PNG files, so the components can be seen without opening a window:
settings/view
Package view builds the settings example: a window of MyGo native UI that shows the navigation controls of uix together.
Package view builds the settings example: a window of MyGo native UI that shows the navigation controls of uix together.
shop command
Example shop opens a window of MyGo native UI that shows the combobox, numberinput, searchfield and rating components together: a product catalog that a search box, a category box, a limit and a minimum rating all narrow at once.
Example shop opens a window of MyGo native UI that shows the combobox, numberinput, searchfield and rating components together: a product catalog that a search box, a category box, a limit and a minimum rating all narrow at once.
shop/cmd/snapshot command
Command snapshot renders the shop example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the shop example headless into PNG files, so the components can be seen without opening a window:
shop/view
Package view builds the shop example: a window of MyGo native UI that shows the combobox, numberinput, searchfield and rating components together, as a product catalog the filters narrow.
Package view builds the shop example: a window of MyGo native UI that shows the combobox, numberinput, searchfield and rating components together, as a product catalog the filters narrow.
studio command
The studio example shows the icon, image and colorwell components together in a brand workbench: the mark of the studio and a like toggle, a preview of a photo, and a color well that picks the brand color.
The studio example shows the icon, image and colorwell components together in a brand workbench: the mark of the studio and a like toggle, a preview of a photo, and a color well that picks the brand color.
studio/cmd/snapshot command
Command snapshot renders the studio example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the studio example headless into PNG files, so the components can be seen without opening a window:
studio/view
Package view builds the studio example: a window of MyGo native UI that shows the icon, image and colorwell components of uix together.
Package view builds the studio example: a window of MyGo native UI that shows the icon, image and colorwell components of uix together.
workspace command
The workspace example shows the form, scrollhorizontal, scrollboth and link components together in a project panel: the form lines up its fields, the days scroll sideways, the board scrolls both ways, and the header links open the guide.
The workspace example shows the form, scrollhorizontal, scrollboth and link components together in a project panel: the form lines up its fields, the days scroll sideways, the board scrolls both ways, and the header links open the guide.
workspace/cmd/snapshot command
Command snapshot renders the workspace example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the workspace example headless into PNG files, so the components can be seen without opening a window:
workspace/view
Package view builds the workspace example: a window of MyGo native UI that shows the form, scrollhorizontal, scrollboth and link components of uix together.
Package view builds the workspace example: a window of MyGo native UI that shows the form, scrollhorizontal, scrollboth and link components of uix together.
writing command
The writing example shows the writing components of the shadcn/ui expansions together in a page of prose: the heading with its anchor, the typewriter and the block quote.
The writing example shows the writing components of the shadcn/ui expansions together in a page of prose: the heading with its anchor, the typewriter and the block quote.
writing/cmd/snapshot command
Command snapshot renders the writing example headless into PNG files, so the components can be seen without opening a window:
Command snapshot renders the writing example headless into PNG files, so the components can be seen without opening a window:
writing/view
Package view builds the writing example: a page of prose of MyGo native UI that shows the writing components of the shadcn/ui expansions together — the heading with its anchor, the typewriter and the block quote.
Package view builds the writing example: a page of prose of MyGo native UI that shows the writing components of the shadcn/ui expansions together — the heading with its anchor, the typewriter and the block quote.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL