Animated React and Tailwind blocks built with craft: real springs, a pressed state on everything, quiet layered shadows. Product pages, campaigns, feedback, navigation and free motion libraries under MIT, with Pro scenes behind a license key.
A large ruler you scrub through: major and minor ticks with labels slide under a fixed center needle, and the ticks near the needle stretch a little. Drag with momentum, scroll the wheel, or use the arrow, Page and Home/End keys; it always settles on a step with a spring. Pass marks to label points such as years or sizes, formatValue for currency or units, and use it controlled or uncontrolled. It is a real slider for assistive tech (role slider with value text). With reduced motion it jumps straight to each step and drops momentum.
A globe drawn as a field of lit dots on a 2D canvas: real coastlines from Natural Earth, a satin sphere shade and a rim light from above, with no WebGL or 3D library. Markers carry a label and a short figure; tap one and the camera flies to it, tap again or press Esc to fly back out. Drag or use the arrow keys to turn it. Nothing spins on its own, it redraws only while something moves, follows your theme colours and switches instantly with reduced motion. The engine (projection, land dots, shading, camera flight) is exported for building your own scenes; SunUI Pro's Store Atlas is built on it.
Dashed empty-state card with a 1.5-stroke icon, title, description and a Load example plus outline button pair (or a custom action), centered or start-aligned. Buttons are real buttons or links with visible focus rings; it is static, so nothing animates under reduced motion.
Error panel with a warning icon, friendly title and message, and an optional Retry button. Uses role="alert" so screen readers announce it; it is static, so nothing animates under reduced motion.
Store search field that expands into a panel of product suggestions with thumbnails, prices and keyboard navigation (combobox pattern, / shortcut).
Favorite heart outline that fills red on a short press when saved (the semantic --sunui-like colour, not the brand spot), for bookmarks, likes or a wishlist. aria-pressed toggle with optional count.
A text field that tells you what is left and fixes the obvious: with mask (for example 999-9999) typed characters are followed by the remaining slots in muted text and separators are added for you; with suggest (suggestEmail is exported) it offers a fix for common email domain typos after you leave the field, such as gmial.com to gmail.com, and accepting swaps only the wrong letters in place; with maxLength a character count sits on the label line, or with counter="ring" a small ring fills as you type and shows the characters left in the last tenth. With strength it becomes a password field with a four-segment concave meter that fills by level (the spot colour only when every rule passes) and a live checklist of configurable rules; the show/hide button still goes in the trailing slot. The floated label stays readable at 12px, and validation, hints, server errors, textarea and the trailing slot work as before. Reduced motion switches instantly.
A corner button that fans out platform-coloured social buttons. Three layouts from the classic SunUI FloatingButton: petal (quarter-circle rings of 3, then 5), column and grid. Buttons spring out with a short stagger and fold back in reverse; the menu icon's three lines fold into a cross. Pins to the viewport or to a positioned parent, any of four corners. Escape closes and returns focus, a press outside closes, aria-expanded on the main button. The main button takes the brand spot colour.
A code-drawn gradient background with nine presets: mesh, grain, silk, aurora, color flow, floral, horizon, line maze and a real-time plasma shader on Canvas 2D. Pick a named palette or pass your own colors (hex, oklch or var(--token)), add film grain and an optional pointer light, and put any content on top as children. No image files. Loops pause off screen and in hidden tabs; with reduced motion it draws a still frame.
A full-width billboard carousel: a large centre cover with the previous and next slides peeking at the sides, a blurred ambient glow behind, swipe or drag to change, arrows, and dot indicators where the current dot becomes a 6.5 s progress bar. It follows the W3C APG carousel pattern (pauses on hover, on keyboard focus and when the tab is hidden; arrow keys; slide roles and labels); reduced motion turns off autoplay, Ken Burns and slide motion.
Numbered pins on a picture (a product shot, screenshot, map or diagram) that open a note card about that part: positions in percent, the open pin turns into an x, notes open to the side away from the nearest edge, and Escape or a click outside closes. Controlled or uncontrolled, numbers or plain dots, and an action slot for a link, a price or add to cart.
A product quick-view card that opens after a short hover delay and stays open while the pointer moves into it, with price, discount and an add to cart button. Keyboard focus opens it, Escape closes it and returns focus, touch opens it on first tap, it flips above the trigger near the viewport edge, and reduced motion removes the slide.
Four small hover pieces for navigation and landing pages: Magnetic pulls a button gently toward the cursor and springs back, InkUnderline draws a line in from the left and out to the right, TextRoll rolls each letter up while the same word rolls in from below, and HoverPreviewList shows a row's picture beside the cursor. All switch off on touch screens and with reduced motion.
A library of 11 image effects: 9 switched with the effect prop on ImageEffect (Ken Burns, clip reveal, soft mask, hover zoom, zoom lens, image swap, glitch, saturate, parallax frame) plus SliceSlideshow and Lightbox for several images. With reduced motion images appear in their final state, loops and autoplay stop, and every image keeps its alt text.
A gallery board that never ends: images or your own nodes tile a grid that wraps in both directions, and only the cells near the viewport are rendered and recycled. Drag to pan with inertia, scroll or swipe a trackpad, or use the arrow keys to glide one cell at a time and Enter to open the centered tile. Clicks under the drag threshold call onSelect. An optional slow drift pans it on its own while it is on screen. Loops pause off screen and in hidden tabs; with reduced motion it still pans but drops inertia and drift.
One background job kit in four layouts sharing a single Job type: a bottom-right tray with a useBackgroundJobs hook, a console row, a progress side panel with named steps and cancel or retry, and a grid tile with a shimmer over the reference image. Progress percent, queue position, ETA, failure notes and the four-locale strings come from the same helpers; the tray is a polite live region and every pulse, shimmer and spinner stops under reduced motion.
Dark, monochrome license panel with one input for a 12-character supporter code or a Lemon Squeezy UUID key. As you type it detects which one it is and groups it (XXXX-XXXX-XXXX or 8-4-4-4-12); each group settles only when it is complete, and the label shows what was detected and how many characters are in. A paste fills it at once. On success the input row morphs in place into the license card: the masked key stays as the anchor and the tier name and an Activated stamp appear where the button was; deactivating morphs it back. It shows the free, trial, basic, pro and supporter tiers, explains grace, expired and invalid states, offers activate, deactivate and revalidate, and turns provider errors into next steps. A rejected key shakes the row once. The accent defaults to neutral ink and can be overridden. Results are announced in a polite live region, and under reduced motion every morph is instant.
Image gallery whose thumbnail grows into the full view and shrinks back on close; switching images sends the old one back to its thumbnail while the next grows from its own. Arrow keys and swipe change images, Escape, the scrim or a downward drag closes, focus returns to the thumbnail, and you can control the index or render custom thumbnails.
Unfurls a pasted URL into a preview card with site name, title, description and image. Pass metadata you already have, or a fetchMeta function that calls your own endpoint. Empty, loading and resolved are one frame that morphs, with the skeleton inside the card and the favicon and domain held in place; an invalid URL shows an inline message, and a failed fetch falls back to a domain-only card that still opens. The whole card lifts on hover and presses in, with row or stacked layouts and an optional remove button.
Feature bento grid: each tile has a title, a short body and a recessed showcase area for your own small visual that demonstrates the feature. A useTicker hook replays each visual only while it is in view and the tab is visible, and holds the last, complete frame with reduced motion. Tiles have no entrance animation; on hover they crossfade from e1 to an e2 shadow layer, and dark mode lifts the surface instead.
A submit button that handles its own async state: return a Promise from onClick and it goes loading, then success with a drawn check or error with a retry label, and resets after a delay. Shrink style collapses into a round spinner, inline style keeps the width. Also accepts a controlled state, announces each state politely and ignores presses while busy.
Twenty-six loading indicators: a Loader with twenty-three variants (bouncing dots, equalizer, ring spinner, spinner to check, orbit, pulse dot, progress ring, bar, indeterminate bar, typing indicator, liquid fill, eight dot orbit, center dots, six dot scale, half ring, twin pulse, wave scanner, split diamond, type sweep, step relay, scale fade, signal trace, loop track) switched by the variant prop, plus TopLoadingBar, MultiStepLoader, Skeleton and DotMatrixLoader. DotMatrixLoader is a 7 by 7 dot grid with six patterns (wave, spiral, rain, ripple, snake, scan) and four states: loading loops the pattern, progress fills dots by value in the order of that pattern, success and error light every dot once and then keep only a check or a cross. The palette prop picks the colour: spot (the brand spot colour, default), status (green on success), mono (the theme text colour only, black on light and white on dark), or a drifting oklch gradient (aurora, sunset, lagoon, prism); error is always red. shape (dot, square, diamond, ring, bar), glow (LED glow for dark surfaces) and emphasis (fade or scale) change the look; the demo shows eight combinations. The spinner-check variant closes its arc when done is true, then a disc settles once and a check is drawn. Loader, TopLoadingBar and MultiStepLoader take the same palette prop as DotMatrixLoader (spot by default, now reading --sunui-spot with a --primary fallback; status turns green when finished; gradients colour each dot, bar or step along the hue range). Skeleton stays neutral. Every loader has role status with a hidden label, and under reduced motion loops stop while progress values stay visible.
A seamless loop of logos, wordmarks or short text, optionally in two rows running in opposite directions. Logos are monochrome in the muted text colour and brighten to the foreground on hover. Edges fade out, it pauses on hover or keyboard focus, and a real pause button is included. It only moves while on screen and the tab is visible, duplicate copies are hidden from assistive tech, and with reduced motion it renders a static wrapped list.
Honest stock meter: one segment per unit when stock is small, otherwise a thin bar; the brand spot colour at the critical level and a plain muted Sold out line when it runs out. Never counts down on its own.
Twenty-seven small, self-contained interaction components: like burst, confetti button, success check, drawn checkbox, stretchy toggle, copy feedback, notification badge, floating label, slide to confirm, hold to confirm, swipe to delete, paper plane send button, password reveal, clear input, radio select with a travelling dot, folder drop, quick reply chips, mute switch, reaction tray, padlock toggle, pin toggle, list to grid, permission gate, face scan, crop frame with aspect ratios, sort handle with keyboard reordering and resize frame that snaps to a grid. The toggle's knob squashes and stretches toward its target while pressed and settles with a spring on release. Import each by name or switch with the effect prop on MicroInteraction; with reduced motion, bursts and flights are skipped and only the state and color change remain. Accent parts read --sunui-spot like the other blocks, falling back to --primary.
An action menu that grows out of its own trigger: the round button stretches from its corner into the full menu, so the eye never loses where it came from. It picks the corner with room inside the viewport and any clipping parent (drawers, scroll lists), shrinks back into the button on close, has full menu keyboard support, and reduced motion swaps the morph for an instant switch. With layout="radial" it becomes a corner floating action button whose actions fan out from its centre along an arc toward the inside of the screen, set by corner.
Eighteen classic animation principles as one wrapper that animates any child, such as an icon, badge, button or product image: burst, easing, overshoot, squash and stretch, motion trail, impact shake, anticipation, follow-through, bounce, wiggle, pulse, ping-pong, stop-motion, repeater, kaleidoscope, line boil, exploded view and stagger. Pick one with the effect prop and play it on mount, in view, hover, click or loop, with intensity, duration, distance, count and color to tune it. Named easing curves, Stagger, ExplodedView, Repeater and Kaleidoscope are exported too. Loops pause off screen and in hidden tabs, and reduced motion shows the child at rest.
A bell button with a capped unread badge in the brand spot colour, opening a popover with avatars, relative times, unread dots, mark all as read and an empty state. When new items arrive the bell swings once on a damped spring and the badge number pops once; marking an item read fades the same row in place, and new rows expand so the list slides instead of jumping. The panel is a labelled dialog with aria-expanded, Escape and outside click to close and focus return, and new arrivals are announced politely; reduced motion switches instantly and keeps every state.
Count badge for any icon: wraps a bell, bag or chat icon and shows a number, a max+ cap or a plain dot. It gives a small bump when the count rises and stays still when it falls, sits in one of three corners, and offers the brand spot colour (accent), the text colour (ink) or theme primary tones with a screen reader label you phrase yourself.
Images on a sphere in CSS 3D, spread evenly with a Fibonacci layout. Drag to spin it and it keeps turning and slows down; click or tab to a tile and the sphere turns it to the front and calls onSelect. Tiles facing away fade out and stop taking clicks, a slow auto-rotate runs until someone interacts, and every loop pauses off screen and in hidden tabs. Arrow keys turn it, the chosen image is announced politely, and with reduced motion it becomes a plain grid of all images.
A list of past orders on a card with small status marks, expandable line items with dotted leaders and totals, an actions slot for buy again or track, and an empty state. Each row is a disclosure button with aria-expanded and aria-controls, and the expand and collapse are instant under reduced motion.
One-time code entry with one bordered box per digit: auto-advance, paste to fill, keyboard navigation, a short error shake and a check with Verified on success that settles once.
Page navigation with a fixed width ellipsis range (first, last, current and siblings), previous and next controls, aria-current="page" and an optional compact '3 / 12' mode; pass getHref to render crawlable links or onPageChange for buttons. A small underline slides to the current page with a snappy spring, and jumps instantly under reduced motion.
Frosted full-width banner shown when a buyer returns from checkout: pending polls every 3 s up to 8 times and turns into success once access is unlocked, success stays and links to the course, failed and error close themselves after 8 s. Uses role="status" for pending and success and role="alert" for failures, has a labelled close button, and the spinner stops under reduced motion.
Name and project chips with a stable identity dot hashed from the id, drawn from 8 equal-lightness, low-chroma OKLCH hues that read the same in light and dark; text stays ink, colour lives only on the dot. PersonChip has emphasized (self), selected, highlighted (changed, dashed), muted and locked states, EmployeeChip is the same keyed by employeeId, AppChip tags an app with an optional paid mark, and AppDot is the dot alone. PersonChipGroup collapses people past max into a +N chip that expands in place, names sliding out of it while surrounding content slides, and one shared selection frame slides between chips; arrow keys move between chips. Clickable chips are buttons with aria-pressed, the toggle has aria-expanded, dots are aria-hidden, and reduced motion switches instantly.
A phone mockup with a dynamic island, status bar (time, signal, wifi, battery), an optional browser URL bar and a home indicator, with a compact layout below 240px width. It renders as a labelled figure with the decorative chrome hidden from assistive tech, and a single frame does not animate. The PhonePair named export overlaps two PhoneFrames tilted in 3D with screens passed as ReactNode, where the front phone follows the cursor more than the back one (springs, fine pointers only) and reduced motion keeps the resting pose.
A library of 24 photography looks and lighting styles applied to any image or element with the effect prop on PhotoLook: backlighting, rim light, silhouette, split, Rembrandt and butterfly lighting, golden hour, blue hour, bokeh, tilt-shift, long exposure, panning shot, lens flare, fisheye, chromatic aberration, vignette, high-key, low-key, black and white, duotone, teal and orange, film grain, light leak and double exposure. The look fades in on mount, in view, on hover or in a loop, and invert turns it into a colour-on-hover pattern that shows the original. Built with CSS filters, blend-mode overlays and per-instance SVG filters; colors, lightAngle, lightPosition, focusPoint and focusBand tune tints and light direction. With reduced motion the final look shows at once and grain and leak animations stop.
Code-drawn pixel art effects on a canvas that sits over any element: a collect burst for claiming a reward, two party poppers of paper confetti, and a block dissolve that covers a screen or unveils what is underneath. Ported from the MIT pixelfx engine (two buffers, opaque pixels with ordered dither plus additive light, seeded so each play is repeatable). Effects take a palette and default to the story series' gold and SunUI's neutral grays. The canvas ignores the pointer and runs only while playing; with reduced motion nothing animates and onDone fires at once.
A cut-out portrait visitors can grab and stretch like a soft toy. The skin is a damped spring mesh: a pull drags the cheek out, the head leans on a soft neck, and it wobbles back on release. Faces cross-fade on hover, grab, pull and release, the eyes follow the cursor and blink, and it yawns when the page goes quiet. The bust sits in a circle or square and the head pops out above it. One WebGL draw, no dependencies; without WebGL or with reduced motion it stays a still picture. Bring your own face images, all with the same framing; the install includes a plush-faces agent skill that generates, checks and converts the set.
A cloud of dots in 3D that forms a sphere, torus, helix, cube, wave or the outline of a word (CJK included), drawn on Canvas 2D with perspective so nearer dots are larger and brighter. Drag to spin it with inertia, and a fine pointer pushes nearby dots aside before they spring back. Changing the shape prop morphs every dot to its new place. It spins slowly while on screen (words only sway so they stay readable), pauses off screen and in hidden tabs, follows the text color, and with reduced motion draws one still frame and switches shapes instantly.
The image slot for a product card or page: on desktop hovering swaps to the second angle and a click zooms in and pans with the pointer; on touch it swipes left and right instead. Dots and a 1/3 counter sit below, arrow keys change images, Escape leaves zoom, and renderImage accepts next/image. Under reduced motion images switch instantly.
Quantity stepper with tabular count, long-press repeat, typed input, min and max limits and a remove action at the minimum.
Remaining quota as a percent plus about how many images are left, in three forms: sidebar ring, mobile sheet bar, and plans-page card. When today's check-in is unclaimed, the second line becomes a check-in nudge. The included hook refetches on window focus, on route or job-count change, and on the rewards event. It uses progressbar roles, an aria-labelled link and a focus-reachable tooltip when the sidebar is collapsed, and drops transitions under reduced motion.
Slider for any numeric value or range (price, rating, volume, quota) that takes a number for one thumb or a [low, high] pair for a range: step snapping, minimum gap, ticks, a value bubble while dragging or focused, custom formatting and hidden inputs for forms. Click the track to jump the nearest thumb, use arrows, Page keys, Home and End, and get onValueCommit once when the drag ends.
Redraws any image as print-style marks on a canvas: halftone dots on an angled screen, ASCII characters, a dot matrix, 1-bit ordered dither or engraved lines, switched with the mode prop. Marks take the text color, so they follow Light and Dark themes, and a fine pointer makes nearby marks swell and push aside before they ease back. An optional sweep draws it in the first time it scrolls into view. It redraws only while something moves, pauses off screen and in hidden tabs, keeps the alt text on the wrapper, and with reduced motion shows a still print.
A calm hold ticket: it leads with the absolute time (Held until 18:30, with the date if not today) and gets more precise as time runs down: about N h left above an hour, minutes under an hour, seconds only in the last five minutes, rolling only the digits that change. With startedAt or holdMs a row of 12 ink dots goes out one by one; item pins what is held as the ticket's anchor. On expiry the same ticket morphs in place: the time is struck through, a void Released stamp takes the countdown's place and the note says the item went back on sale. Optional one-time extension. shadcn tokens only, accent via primary. The remaining time is role="timer" (not read every second), aria-live fires only on expiry, and reduced motion switches instantly. Includes ReservationExpiredPanel.
SunUI's result mark (exported as Result; Stamp is the old name of the same component): placed where the result happened, a small disc in the brand spot colour with a top highlight and a check that draws in and settles once on a spring, or muted text for negative results such as ended, expired or sold out. The shape picks what extra detail it carries (date adds a date, seal adds a second line) rather than how it looks. Appears instantly under reduced motion. The registry name stays stamp so existing installs keep working.
Cards on a curved ribbon in CSS 3D. Drag or flick sideways and it snaps to the nearest card with a spring, use the arrow keys or buttons, or click a side card to bring it to the middle. It loops by default, can bend away from you (convex) or wrap around you (concave), and only draws the cards near the middle. Optional autoplay runs only while on screen and pauses on hover, focus and hidden tabs, and announcements are turned off while it plays. With reduced motion it becomes a flat scroll-snap row. With layout="stack" the cards become a deck where deeper cards step back, tilt slightly and dim, and the top card swings to the back on drag, flick or arrow keys.