React hooks and TypeScript utilities
Hooks & Utilities are the shared pieces the components import, published so you can use them in your own code too. The hooks cover state (useControllableState, usePersistedState and useSelection), the device (useMediaQuery with phone, touch and breakpoint variants, and useKeyboardInset), input (useShortcut, useLongPress, useClipboard and useDebounce) and scrolling (useScrollState, useScrollEdges and useStickToBottom). Media players and cookie banners have their own hooks, useMediaControls and useConsent.
All Hooks & Utilities[36]
AI Chat
The AI kit's shared vocabulary: message, tool call and model types, token and duration formatting, live timers and a mock stream.
Chart kit
A React chart toolkit: the palette, formatters, measuring container, axes, crosshair, tooltip, legend and data table charts share.
Commerce
Price formatting and cart math for React shops and marketplaces: prices, discounts, unit prices, coupons and cart totals with VAT.
Date utils
Locale-aware date helpers for React date pickers and calendars: week start, month and weekday names, typed-date parsing, grids and presets.
File export
File export helpers for React apps: download blobs, text and JSON, turn a canvas or an SVG into a PNG, copy images and name files cleanly.
File types
File type helpers for React that tell what a file is from its name or mime type: kind, icon, tile colors, a type label and a localized size.
Filters
The filter model behind React filter builders and saved views: typed fields, AND / OR groups, evaluation, sentences and URL strings.
Form validation
Zod validation rules for React forms with one message set (English or Romanian), react-hook-form glue and a pretend request.
Haptics
Haptic feedback for the web in one call: short vibration ticks on Android and the system tick on iPhone, silent everywhere else.
Invoicing
Invoice math for React billing apps: VAT per rate the way e-Factura checks it, Romanian VAT rates, and CUI, IBAN and CNP validation.
Motion presetsFree
The shared springs, enter and exit presets, stagger helpers and reduced-motion hooks every animated component uses.
NavigationFree
Router-agnostic links, active-route matching, one NavItem shape and the app shell context that every nav component shares.
Number formatFree
Locale-aware number helpers: cached Intl formatting, parsing what people type, step math and currency affixes.
Relative time
Hydration-safe timestamps for feeds and comments: "5 min. ago", day groups like Today / Yesterday, clocks and full dates.
Romanian locations
Romania's counties, cities and neighbourhoods with coordinates, diacritic-free search, distances and within-radius lists.
Spreadsheet
Read CSV and Excel files in the browser, match their columns to your fields, and write CSV that Excel opens with diacritics intact.
Text matchFree
Search that ignores case and diacritics, ranks the best matches first and returns the ranges to highlight.
TonesFree
One way to color a React component: a tone or any CSS color becomes five CSS variables every variant paints with.
UIProviderFree
A React config provider for Wingo UI: app-wide default props for every component, the Intl locale and a reduced-motion policy.
useClipboardFree
A React copy-to-clipboard hook with a copied flag that resets itself, and a fallback for pages without the Clipboard API.
useConsent
A React cookie consent hook: which categories a visitor allowed, when and under which policy version, shared by banner, links and scripts.
useControllableStateFree
A React hook for controlled and uncontrolled state: it follows a value prop when you pass one and keeps its own state when you do not.
useCooldown
A React cooldown timer hook for resend and retry buttons: wait N seconds before a code can be sent again, kept across reloads.
useDebounceFree
React debounce hooks for values and callbacks: search as you type without sending a request on every keystroke.
useKeyboardInset
A React hook for the mobile on-screen keyboard: how much of the screen it covers, so bars pinned to the bottom ride above it.
useLocaleFree
A React hook for the locale numbers, dates and prices are formatted with, the same on the server and in the browser.
useLongPressFree
A React long press hook for touch screens: handlers that fire after a hold, cancel on scroll and swallow the click that follows.
useMediaControls
A React hook for custom audio and video players: play, seek, volume, speed, buffering and a smooth playhead from one media element.
useMediaQueryFree
A React useMediaQuery hook that is SSR-safe, plus hooks for phone widths, touch screens and the current Tailwind breakpoint.
useOverflowItems
A React overflow menu hook (Priority+) that shows what fits in a row and moves the rest into a More menu.
usePersistedState
A React useState that survives reloads in localStorage, sessionStorage or a cookie, syncs across tabs and hydrates cleanly.
useScrollEdgesFree
A React scroll shadow and fade hook: knows which edges of a scroll container hide more content and fades them with a mask.
useScrollState
A React scroll position hook: offset, progress and hide-on-scroll state for the window or a container, as motion values without re-renders.
useSelection
A React selection hook for lists, tables and grids: single or multiple, Shift-click ranges, and select all with an indeterminate state.
Guides
Tutorials and guides from the blog that use these hooks and utilities.
Component guides
React Funnel Chart: Conversion, Drop-off and Cohorts
Build a react funnel chart that prints each step's count, its conversion and the drop-off between steps, as aligned bars or a tapered shape that stays honest.
9 min read
Next.js and Tailwind CSS
shadcn Tailwind v4 Migration: Step by Step From v3
A shadcn tailwind v4 migration in order: the upgrade codemod, tailwind.config into @theme inline, hsl to oklch, border and ring fixes, and tw-animate-css.
10 min read
Next.js and Tailwind CSS
Tailwind v4 Nextjs 16 Setup: Config, Fonts and 5 Fixes
Set up a Tailwind v4 Nextjs 16 app: PostCSS plugin or the new Turbopack loader, @theme tokens in CSS, next/font variables and fixes for five errors.
9 min read
Component guides
React Audio Player with Waveform: Scrub, Seek, Peaks
Build a React audio player with waveform scrubbing for podcasts, chat voice notes and call logs, with keyboard seek, precomputed peaks and no layout shift.
9 min read
Component guides
React Charts Tailwind: 4 Charts and a Kit for Any Theme
React charts Tailwind can theme: area, bar, line and donut charts plus a chart kit on d3-scale and d3-shape, readable in light and dark mode and on a phone.
10 min read
Component guides
React QR Code with Logo: Rounded Modules, PNG and SVG
Build a React QR code with logo that still scans: rounded or dotted modules, a cleared center tile, the right error correction level and PNG or SVG export.
9 min read
About Hooks & Utilities
The libraries hold the logic behind whole categories: Motion presets for springs and reduced motion, Tones for coloring any component, UIProvider for app-wide defaults and the locale, Chart kit for the charts, Date utils, Number format and Relative time for formatting, Form validation for zod rules, and Filters, File types, File export, Spreadsheet, Commerce, Invoicing and Haptics. They install on their own with any component that needs them, so you rarely add one by hand, and they are safe to render on the server. 14 of the 36 hooks and utilities are free: the source is open to everyone through the CLI, shadcn and the docs page (the MCP server needs a free account key). The other 22 are part of Pro.