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.

SubpathWhat it coversKey exports
mediaenvironment queriesMediaQuery, PrefersDark, PrefersReducedMotion, Breakpoints
netnetwork & tabsOnline, websocket, sse, broadcastMessages, SharedHost
timetimers & formattingTimer, Interval, ticks, debounce, Throttle, formatRelativeTime
stateUI state helpersPagination, history, Box, Locale, SelectionSet, Virtual, range
motionanimationTween, Spring, Presence, the Motion service
interactionkeyboard & pointerRovingTabindex, ListNavigation, Press, Move, DismissLayer, and more
devicehardware APIsGeolocation, mediaDevices, mediaStream, permissions, fullscreen
eventswindow eventsVisibility, WindowSize, Idle, keyboardEvents, matchHotkey, and more
observerselement observersResize, Intersection, Mutation, Bounds
domelement mounts & cmdsAutofocus, InputMask, FocusScope, copyText, share, keepScroll, and more