Skip to content

Widget gallery

Each picture is one component, drawn by a small real program (after the keys named in its test) and rendered from the cell grid the program produced, so it shows what the component looks like and nothing else. A test compares the text of every picture with a golden file in internal/tools/widgetshots, so the gallery cannot drift from the code. Every package is documented at pkg.go.dev; Widgets says how they fit together.

Button, as drawn in a terminal

Button · button

Button group, as drawn in a terminal

Button group · buttongroup

Checkbox, as drawn in a terminal

Checkbox · checkbox

Toggle, as drawn in a terminal

Toggle · toggle

Radio group, as drawn in a terminal

Radio group · radiogroup

Slider, as drawn in a terminal

Slider · slider

Rating, as drawn in a terminal

Rating · rating

Tabs, as drawn in a terminal

Tabs · tabs

Breadcrumb, as drawn in a terminal

Breadcrumb · breadcrumb

Pagination, as drawn in a terminal

Pagination · pagination

Accordion, as drawn in a terminal

Accordion · accordion

Picker, as drawn in a terminal

Picker · picker

Multi-select, as drawn in a terminal

Multi-select · multiselect

Tree view, as drawn in a terminal

Tree view · treeview

Data table, as drawn in a terminal

Data table · datatable

Text input, as drawn in a terminal

Text input · textinput

Password input, as drawn in a terminal

Password input · passwordinput

Email input, as drawn in a terminal

Email input · emailinput

Number input, as drawn in a terminal

Number input · numberinput

One-time code, as drawn in a terminal

One-time code · otpinput

Tag input, as drawn in a terminal

Tag input · taginput

Loading bar, as drawn in a terminal

Loading bar · loadingbar

Scrollbar, as drawn in a terminal

Scrollbar · scrollbar

Skeleton, as drawn in a terminal

Skeleton · skeleton

Date picker, as drawn in a terminal

Date picker · datepicker

Color picker, as drawn in a terminal

Color picker · colorpicker

Confirm, as drawn in a terminal

Confirm · confirm

Avatar, as drawn in a terminal

Avatar · avatar

Carousel, as drawn in a terminal

Carousel · carousel

Transfer list, as drawn in a terminal

Transfer list · transferlist

Menu, as drawn in a terminal

Menu · menu

Command palette, as drawn in a terminal

Command palette · commandpalette

Stopwatch, as drawn in a terminal

Stopwatch · clockview

Viewport, as drawn in a terminal

Viewport · viewport

Log view, as drawn in a terminal

Log view · logview

Form, as drawn in a terminal

Form · form

Hex view, as drawn in a terminal

Hex view · hexview

Tooltip, as drawn in a terminal

Tooltip · tooltip

Hover card, as drawn in a terminal

Hover card · hovercard

Popover, as drawn in a terminal

Popover · popover

Menu bar, as drawn in a terminal

Menu bar · menubar

Notification center, as drawn in a terminal

Notification center · notificationcenter

File picker, as drawn in a terminal

File picker · filepicker

Dialog, as drawn in a terminal

Dialog · dialog

Toast, as drawn in a terminal

Toast · toast

Context menu, as drawn in a terminal

Context menu · contextmenu

Drawer, as drawn in a terminal

Drawer · drawer

Help screen, as drawn in a terminal

Help screen · helpscreen