A table of contents that turns into a floating pill as you read. At rest it is an inline list of section links. Once that list scrolls away, a compact pill appears at the top centre (bottom on phones) with a progress ring, the current section title, a 3/7 count and the estimated time left from the words still unread. Clicking the pill opens every section with the current one marked and a small progress bar each. At the end the ring turns into a check with an optional Back to top action. Headings are found automatically (h2 and h3) or passed in, and it works with the page or a scrolling container. Navigation landmarks, aria-current on the active link, an expandable button, Escape to close and focus moved to the heading after a jump; reduced motion scrolls instantly with no fades.
Components
Components
Marquee
FreeAn infinite scroller for any children: horizontal or vertical, either direction, speed in pixels per second (measured, so long and short rows move at the same pace), adjustable gap, edge fades, pause on hover or focus and a paused prop for your own pause button. It adds as many copies as the track needs, hides the copies from screen readers and keyboard, and shows one static wrapped copy when reduced motion is on.
A real HTML table comparing four plans across grouped features: a plan row with prices and actions that sticks while you scroll, group headings, check and minus marks with screen-reader text, and plain values for limits. On phones the table scrolls sideways with the feature column pinned; on large screens the plan row sticks to the page, with an offset prop for fixed navbars. The recommended plan's column is tinted from top to bottom.
Display text whose letters each turn a full circle in a left-to-right wave. Pick the axis (flip on x, turn on y, spin on z) and start it on hover, on keyboard focus, once on mount, when it scrolls into view, by bumping a play counter, or scrub it by hand from 0 to 1 for scroll-linked headings. Hover can come from any ancestor marked data-spin-group, so a whole link or card triggers it. Echo mode puts a coloured copy on each letter's back face so the wave flashes your accent mid-turn, and scatter gives each letter a small, stable offset for a looser ripple. Words never break mid-line, screen readers hear the text once rather than letter by letter, and reduced motion turns the spin off.
Guided tour
FreeAn onboarding walkthrough that points at real parts of your interface. A dimmed overlay leaves a rounded cut-out around the current target, and the cut-out glides and resizes from one target to the next. A step card sits on the side with room (flipping when it would overflow) with an arrow, title, body, step dots, Back, Next and Skip; under 480px it docks to the bottom as a sheet. Targets are CSS selectors or refs, scrolled into view and re-measured on scroll and resize. Optional beacon mode starts from a pulsing dot instead of the overlay, and interactive steps let clicks pass through the cut-out and advance when the target is pressed. The card is a labelled dialog with trapped focus, arrow keys and Enter to step, Escape to end and focus returned to the launcher; the target is described by the step while active. With reduced motion the cut-out jumps instead of gliding.
Logo marquee
FreeA customer logo strip that scrolls endlessly: eight fictional wordmarks drawn as inline SVG and type (swap in your own), a short heading, soft edge fades, pause on hover, and a static centred wrap when the visitor prefers reduced motion. The duplicate row is hidden from screen readers, so each name is announced once.
Number ticker
FreeCounts a number up (or down) from a start value to its target when it scrolls into view, using IntersectionObserver and requestAnimationFrame. Formats every frame with Intl.NumberFormat (currency, percent, compact, decimals, any locale), keeps width steady with tabular figures, gives screen readers the final value, and shows it straight away when reduced motion is on.
Underline tabs
FreeAccessible tabs with an underline that slides to the selected tab. Follows the ARIA tabs pattern with roving focus (arrow keys, Home and End), automatic or manual activation, linked tab and panel ids, disabled tabs and optional count badges. The tab row scrolls sideways on narrow screens and keeps the selected tab in view; the slide respects reduced motion.
Command palette
FreeA ⌘K / Ctrl+K command palette in a modal dialog. Commands are grouped, filtered with a forgiving fuzzy match on labels and keywords (matched letters are highlighted), and run with the arrow keys and Enter or a click. Includes an empty state, keyboard shortcut hints, a footer legend, a result count for screen readers, focus restore on close, scroll lock and a useModKey helper for showing ⌘ or Ctrl.
An application layout with a sidebar and a top bar. The sidebar has a workspace switcher, grouped navigation with badges and an optional footer, and collapses to icons with label tips (Ctrl/Cmd+B, remembered in localStorage). The top bar holds the page title, a search field (Ctrl/Cmd+K), your action buttons and an account menu. Below 1024px the sidebar opens as a drawer with focus trapping, Escape to close and scroll lock.
Modal dialog
FreeAn accessible modal dialog rendered in a portal: focus moves in on open and returns to the trigger on close, Tab is trapped, Escape and backdrop clicks close it, page scroll is locked without layout shift, and the title and description are linked with aria-labelledby and aria-describedby. Supports role="alertdialog", nested dialogs, three sizes, a footer slot, a bottom-sheet layout on small screens and a reduced-motion-aware enter and exit.
Cart drawer
FreeA slide-over shopping cart. It lists line items with a thumbnail, variant, line total, quantity stepper (respecting a maximum) and remove button, shows progress toward a free-shipping threshold, and ends with the subtotal, shipping and a checkout button. As a modal dialog it traps focus, closes on Escape or a backdrop click, locks page scroll, restores focus on close and announces quantity changes. Includes an empty state; currency and locale are configurable.
A sticky top bar with logo, a Products disclosure menu (two-column panel with icons, descriptions and a footer link), plain links, sign-in and a primary action. The menu opens on click or Arrow Down, moves with arrow keys, and closes on Escape, outside press or when focus leaves. Below the large breakpoint a menu button opens a full-height sheet: a modal dialog that takes focus, keeps Tab inside, closes on Escape or the backdrop, locks page scroll and hands focus back.
Kanban board
FreeA task board with columns, work-in-progress limits and cards showing a tag, priority, due date, comment count and assignees. Cards move by pointer drag (mouse anywhere on the card, touch from the handle) with a drop placeholder and edge auto-scroll, or by keyboard: focus a card's handle, press Space to pick it up, use the arrow keys, Space to drop and Escape to cancel. Move buttons and live-region announcements cover the same moves. Works controlled or uncontrolled, with an optional inline add-card field and custom card bodies.
Streak heatmap
FreeA calendar heatmap of rounded cells in five shades of one theme colour. The year layout shows weeks by weekdays with month and day labels; the week-hours layout shows weekdays by hour. On narrow screens it shows the most recent weeks that fit instead of scrolling. The header has a total, a period picker and current and longest streak badges worked out from the data. Clicking a step in the Less to More legend shows only cells at that level, and hovering a cell outlines its week. Arrow keys, Home and End move through the grid, with a tooltip on focus as well as hover.
Decode text
FreeText that resolves out of random glyphs into the real string. Each character cycles through a glyph set (letters, hex, binary, symbols or your own) and locks left to right, from the centre out or in random order, at a fixed tick so the pace is the same on any screen. Give it a list of strings and it cycles through them, decoding only the characters that change, with an optional block caret riding the resolve front. It can start on mount, on scroll into view or on hover and focus, keeps its width steady by reserving the longest string, gives screen readers the plain text without live announcements, and shows the final text at once when reduced motion is on.
Drop-off funnel
FreeA conversion funnel of horizontal stages whose widths shrink with their value, joined by curved bridges so it reads as one flowing shape filled with a gradient from the theme's chart colours. Each stage shows its label, count and share of the first stage, and a chip between stages shows the loss. The largest drop is found automatically and marked in the destructive tone. An optional earlier period draws as a dashed ghost shape with up or down deltas per stage. Stages grow in when scrolled into view, it can lay out horizontally on wide containers, labels move above the bars on phones, and every number is available as text for screen readers.
Ink marks
FreeAn inline wrapper that draws hand-made pen marks around words: a wavy underline, a slanted highlighter block, a loose circle that overshoots, a box, a strike, side brackets or a curved arrow pointing in from above. Each mark is an SVG sized to the words with ResizeObserver and shaped by a small seeded jitter, so it looks drawn by hand yet stays the same on every render. Marks draw in when they scroll into view, a roughness setting goes from neat to scribbly, highlight, underline and strike follow wrapped lines, and InkMarks.Group draws its marks one after another like someone annotating live. Meaning is kept in mark, s or em elements, and reduced motion shows the marks already drawn.
A preview card that grows into a centred dialog and shrinks back into place. The dialog opens out of the card's rectangle while the shared image and title travel and resize to their dialog positions, and the rest of the dialog fades in a beat later. Closing shrinks back into wherever the card is now, even after the page scrolled. On touch the dialog can be dragged down to close with the backdrop fading, and gallery mode adds previous and next controls plus arrow keys to move between cards. Built from small parts (CardExpand, Item, Trigger, Content, Image, Title, Description, Close). The dialog is modal and labelled by its title, focus moves to Close and stays inside, Escape closes, focus returns to the card and the page behind is inert. Reduced motion uses a plain fade.
Fling gallery
FreeA horizontal strip of rounded image frames you can grab and throw. Drag, horizontal scroll or the arrow keys move it, and a throw keeps its speed then slows with smooth friction. Loop mode repeats the set seamlessly and drifts at an idle pace, picking the drift back up after a throw; free mode has springy ends. Images sit wider than their frames and slide against the motion for depth, frames lean slightly in the direction of a fast throw, and a caption fades in under the centre frame once the strip comes to rest. Items without images get a generated gradient from your chart colours. It is a labelled carousel with focusable slides, a drag never triggers a click, hover and focus pause the drift, a pause button appears when it moves on its own, and reduced motion steps item by item without drift, inertia or parallax.
Swipe sheet
FreeA panel that slides in from any edge (bottom, top, left or right) with a grab handle and is dismissed by dragging it back. Releasing past 35% of its size or with enough speed closes it; otherwise it springs back, and dragging the wrong way meets rubber-band resistance. Bottom sheets can rest at snap points such as 30%, 60% and 92%, the backdrop fades with the drag, and an optional stack target scales the page behind for a layered feel. Modal sheets trap focus, lock page scroll and return focus to the trigger; non-modal sheets leave the page usable, which suits a mini player. The handle is a button: arrow keys move between snap points and Escape closes. Scrollable content only starts a drag from the top, and reduced motion swaps the spring for a short linear slide.
