All composables
30 Vue 3 composables in TypeScript, grouped by what they do. Each is one file the CLI copies into your project.
- useAppConfig: A robust composable that provides reactive, read-only access to the centralized application configuration, including theme, SEO, and layout settings.
- useAnnouncer: One place that speaks to screen readers: two visually hidden live regions, polite and assertive, added once for the app. Messages outlive the component that…
- useAppUi: Switches between the VueTail presets (Ink, Pine, Console) by setting data-vt-preset on the html element, remembers the choice, and loads each preset's fonts…
- useAuth: Session state on top of src/lib/authToken.ts. The access token lives in memory only, so script on the page cannot read it from storage; the refresh token is…
- useBlob: The blob numbers, read from the tokens: the corner radius, the goo blur that follows it, and the morph spring. Every caller shares one MutationObserver on…
- useBreakpoint: A reactive composable for tracking active Tailwind CSS breakpoints and conditionally rendering content based on screen size.
- useClipboard: Copies text to the clipboard with a short-lived copied flag and an optional toast. Falls back to a hidden textarea where navigator.clipboard is missing (plain…
- useConfirm: Opens a confirmation dialog and resolves the answer as a promise. The dialog renders with the caller's app context, so the router, plugins and app-level…
- useDateFormat: A utility hook for standardizing date and time formatting, including preset patterns and relative time (e.g., "2 hours ago").
- useDebounce: Debounce or throttle a reactive value, so an expensive reaction (an API call, a filter over thousands of rows) runs once the input settles. Timers stop with…
- useDockDrag: AppDock's grip drag. Lifts the bar off its edge, keeps it under the pointer, previews where it will land and hands the landing to useDockFlight. Nothing…
- useDockFlight: FLIP animation for a dock changing edge, from a drag, a grip click or a settings menu alike. Moves on the motion tokens (--vt-duration-enter, --vt-ease) with…
- useDockPosition: The screen edge an AppDock is pinned to. The viewport dock shares one persisted edge; a dock scoped to a container gets its own with createDockPosition.
- useFormValidation: Clears validation errors as the user fixes them, by re-checking the form against a Zod schema. Error keys are field paths: email, or address.city for a nested…
- useIndicator: The sliding indicator of a segmented control or tab list, as two AppBlob shapes. Items carry data-indicator="<key>"; the active one is measured against the…
- useInfiniteScroll: Loads paginated data as the user nears the end of a list. An IntersectionObserver watches a sentinel after the last item and loads the next page while it is…
- useKeyboard: Binds global keyboard shortcuts and cleans them up on unmount. Single-key shortcuts stay quiet while the user types in a field; ctrl, alt and meta combos and…
- useLiquidGlass: The refraction engine behind AppLiquidGlass, AppGlassContainer and AppMagnifier. Builds a lens map for an element, keeps it in step with its size, settings…
- useLocalStorage: A ref mirrored to localStorage as JSON, with an optional Zod schema: anything that does not parse falls back to the default. A change made in another tab…
- useMotionTokens: Transition settings for motion-v, read from the duration tokens each call, so a preset switch and prefers-reduced-motion (which shortens every duration to 80…
- useOverlay: Focus, scroll and Escape for anything over the page: dialogs, sheets, lightboxes. Overlays form one app-wide stack, so only the top one traps Tab and hears…
- usePagination: Client-side pagination: offsets, ranges and visible page numbers for tables and lists. Options take numbers, refs or getters, and the page is pulled back the…
- useReducedMotion: A reactive flag that is true while the visitor has asked their OS for reduced motion. Animated components read it to drop movement (rise, scale, slide) and…
- useRovingFocus: Arrow-key navigation through a group of items, the WAI-ARIA way: the arrows of the orientation, Home and End, optional wrap and type-ahead, disabled items…
- useSeo: Applies page metadata (title, description, Open Graph) and clears it when the page unmounts. A getter re-applies whenever the data it reads changes, as well…
- useSidebar: Global state management for an application sidebar, handling both desktop collapse state (persisted) and mobile drawer state.
- useTableDisplay: App-wide list display preferences shared by every AdvancedAppTable: table rows or record cards, relaxed or compact density, and per-table hidden columns. All…
- useTheme: A powerful theme management hook that handles light/dark/system modes, reactive color retrieval, and persistent user preferences.
- useThemeCustomizer: Retunes the active preset from the five settings in DESIGN.md: accent, neutral tint, radius, density and font. Each setting is optional and overrides the…
- useToast: App-wide notifications. Mount AppToast once (App.vue) with the toasts ref. Call success, error, warning or info from anywhere. At most five show at once, a…