API
Complete signatures for every public class Phui exposes, grouped by what you reach for them to do. These pages describe what each thing is; for task-shaped guidance start from the How-to guides, and for the components that ship with Phui see Built-in Components.
Describing the UI
- Nodes — the
Phui\Nodesclasses abuild()returns: elements, containers, text, sizing, spacing and borders - Component —
Componentitself, the attributes that declare its reactive members, and the nodes that mount it - Canvas & Text —
SurfaceandSurfaceCellfor painting cell by cell, andStyledStringfor runs of styled text
Styling
- Colours —
Colourand its implementations:Hex,Rgb,GradientandDefaultBackground - Theming —
Theme,Paletteand theRecolourabletrait behind every*Coloursclass - Tailwind Utilities — the space-separated classes
tw()accepts, and their fluent equivalents
Input & runtime
- Events — every typed event a handler can receive: keypress, paste, mouse, emit and system
- Bindings —
Binding,Keymapand theKeypressenum, plus the keys the framework claims for itself - Runtime — the services supplied to each component: focus, timers, system, themes, async and keymaps
- ElementRef — reading where an element landed and driving a container's scroll position