Primitives / foldkit-primitives
Subpaths by concern
Each subpath is one concern and one import. Its README has the full reference for every Model shape, Message, argument, and failure rule.
| Subpath | What it covers | Key exports |
|---|---|---|
media | environment queries | MediaQuery, PrefersDark, PrefersReducedMotion, Breakpoints |
net | network & tabs | Online, websocket, sse, broadcastMessages, SharedHost |
time | timers & formatting | Timer, Interval, ticks, debounce, Throttle, formatRelativeTime |
state | UI state helpers | Pagination, history, Box, Locale, SelectionSet, Virtual, range |
motion | animation | Tween, Spring, Presence, the Motion service |
interaction | keyboard & pointer | RovingTabindex, ListNavigation, Press, Move, DismissLayer, and more |
device | hardware APIs | Geolocation, mediaDevices, mediaStream, permissions, fullscreen |
events | window events | Visibility, WindowSize, Idle, keyboardEvents, matchHotkey, and more |
observers | element observers | Resize, Intersection, Mutation, Bounds |
dom | element mounts & cmds | Autofocus, InputMask, FocusScope, copyText, share, keepScroll, and more |