Skip to content

Component Reference

API reference for all silvery components. Import from "silvery" (the public barrel) unless noted otherwise.

Layout

ComponentDescription
BoxFlexbox container -- the primary layout primitive
ScreenFullscreen root component (claims full terminal)
SplitViewRecursive binary-tree pane tiling
SpacerFills available space (flexGrow={1})
FillRepeats content to fill parent width
NewlineRenders newline characters

Text & Display

ComponentDescription
TextText rendering primitive with styling
LinkOSC 8 terminal hyperlinks
TransformLine-by-line text transformation
TypographySemantic text presets (H1, H2, H3, P, Lead, Muted, Small, Strong, Em, Code, Kbd, Blockquote, CodeBlock, HR, UL, OL, LI)
BadgeInline status label
DividerHorizontal separator with optional title
CursorLineSingle-line cursor rendering
ImageBitmap images (Kitty/Sixel)
SkeletonLoading placeholder
TooltipContextual help text

Input

ComponentDescription
TextInputSingle-line text input with readline
TextAreaMulti-line text input with word wrapping
EditContextDisplayRead-only multi-line display with cursor
SelectListKeyboard-navigable single-select list
ToggleFocusable checkbox-style toggle
ButtonFocusable button control
SearchBarSearch bar (uses SearchProvider context)

Lists & Virtualization

ComponentDescription
ListViewUnified virtualized list (recommended)
VirtualListDeprecated -- thin wrapper around ListView
VirtualViewDeprecated -- thin wrapper around ListView
HorizontalVirtualListHorizontal virtualized list
ScrollbackViewNative terminal scrollback
ScrollbackListDeclarative scrollback wrapper
StaticWrite-once rendering for logs
GridCellAuto-registering 2D grid position wrapper
ComponentDescription
TabsTab bar with keyboard navigation (Tabs, TabList, Tab, TabPanel)
BreadcrumbNavigation breadcrumb trail
TreeViewExpandable/collapsible tree
CommandPaletteFilterable command list

Dialogs

ComponentDescription
ModalDialogReusable modal dialog
PickerDialogSearch-and-select dialog
PickerListStandalone scrolling result list

Data Display

ComponentDescription
TableData table with headers and column alignment
ConsoleRendered console output

Feedback

ComponentDescription
SpinnerAnimated loading spinner
ProgressBarProgress bar (determinate/indeterminate)
ToastToast notifications (useToast + ToastContainer)

Error Handling

ComponentDescription
ErrorBoundaryCatches render errors in children

Theming

ComponentDescription
ThemeProviderProvides Theme to component tree

Form Layout

ComponentDescription
FormVertical form layout (Form + FormField)

Released under the MIT License.