Primitives / foldkit-primitives
The map
Each subpath is one concern and one import. Its README has the full reference: every Model shape, Message, argument, and failure rule.
| Subpath | What it covers | Primitives |
|---|---|---|
media | the environment | MediaQuery (+ PrefersDark, PrefersReducedMotion), Breakpoints, platformFromUA, isBrowser |
net | the network | Online, websocket, sse, broadcastMessages, postBroadcast, SharedHost |
time | the clock | Timer, Interval, ticks, debounce, Throttle, formatRelativeTime |
state | UI state with nowhere else to live | Pagination, history, Locale, SelectionSet, Virtual, range, layout math |
motion | animation | Tween, Spring, Presence, the Motion service |
interaction | keyboard, pointer, and focus patterns, with their Behaviors | RovingTabindex, Typeahead, ListNavigation, GridNavigation, TreeNavigation, FocusScope, Press, LongPress, Move, Targets, PointerDrag, EditableText, FocusVisible, DismissLayer, Layers, Selection, LiveAnnounce |
device | hardware | Geolocation, mediaDevices, mediaStream, permissions, fullscreen |
events | raw window events | Visibility, WindowSize, Idle, InputModality, keyboardEvents, pointerEvents, scrollEvents, activeElementEvents, matchHotkey |
observers | element observers | Resize, Intersection, Mutation, Bounds |
dom | element Mounts and one-shot Commands | Autofocus, InputMask, KeepInView, Measure, FluidHover, FocusScope, FollowTabStop, ScrollLock, HideOutside, copyText, readText, share, loadScript, keepScroll, pointedLinks |