Skip to content

Components & Hooks

This is a quick-reference index of all Silvery components and hooks. For detailed usage, see the Components Guide and the individual API pages.

Components

Layout

ComponentDescriptionAPI
BoxFlexbox container with borders, padding, overflowCore
SpacerFlexible space that fills available roomCore
NewlineLine breakCore
SplitViewResizable split panesUI

Text & Display

ComponentDescriptionAPI
TextStyled text with color, bold, italic, wrappingCore
StaticNon-updating content (logs, completed items)Core
TransformPer-line string transformationCore
BadgeStyled label/tagUI
DividerHorizontal ruleUI
LinkOSC 8 hyperlinkUI
ImageKitty graphics / Sixel with text fallbackUI

Input

ComponentDescriptionAPI
TextInputSingle-line text input with readline shortcutsUI
TextAreaMulti-line text editor with cursor, selection, undoUI
SelectListSingle-select list with keyboard navigationUI
ToggleBoolean toggleUI
ButtonClickable buttonUI

Data Display

ComponentDescriptionAPI
TableColumn-aligned table with headersUI
VirtualListO(1) scroll for thousands of itemsUI
VirtualViewVirtualized arbitrary contentUI
TreeViewExpandable/collapsible treeUI

Feedback

ComponentDescriptionAPI
SpinnerAnimated spinner (dots, line, arc, bounce)UI
ProgressBarDeterminate and indeterminate progressUI
Toast / useToast()Auto-dismiss notificationsUI
SkeletonLoading placeholderUI

Overlays & Navigation

ComponentDescriptionAPI
ModalDialogModal overlay with focus trappingUI
CommandPaletteFuzzy-search command palette (Ctrl+K)UI
PickerDialog / PickerListSelection dialogUI
TooltipContextual tooltip overlayUI
Tabs / TabList / Tab / TabPanelTabbed interfaceUI
BreadcrumbPath breadcrumb with separatorsUI

Layout Wrappers

ComponentDescriptionAPI
ThemeProviderTheme context providerTheme
ErrorBoundaryReact error boundary with resetUI
ConsoleCaptures console.log outputUI
Form / FormFieldForm layout with labels and validationUI

Hooks

Layout & Measurement

HookDescriptionAPI
useContentRectComponent's content dimensions (synchronous)Core
useScreenRectComponent's screen-space position and dimensionsCore

Input & Interaction

HookDescriptionAPI
useInputKeyboard input handlerCore
usePasteBracketed paste handlerCore
useCursorTerminal cursor positioning (IME)Core

Focus

HookDescriptionAPI
useFocusFocus state for a componentCore
useFocusManagerProgrammatic focus controlCore
useFocusWithinWhether any descendant is focusedCore

App Lifecycle

HookDescriptionAPI
useAppApp-level methods (exit)Core
useStdoutstdout stream accessCore

Animation

HookDescriptionAPI
useAnimationFrame-based animation with easingUI
useAnimatedTransitionAnimated value transitionsUI

Data & State

HookDescriptionAPI
useScrollbackFreeze completed items into terminal historyCore
useToastToast notification managementUI

See Also

Released under the MIT License.