hone
A shadcn registry of React components lifted from real products and finished to one bar: interruptible motion, honest feedback, reduced-motion paths. You install the source and own it.
Components
Command Palette
A grouped command list behind ⌘K and /. Keyboard opens are instant; a click gets a 150ms scale from 0.96. The panel is a translucent material over a dim scrim, with a focus trap, scroll lock and focus return.
Copy Button
Copies text to the clipboard. The icon morphs from copy to check with a blurred cross-fade, the button presses to 0.97, and screen readers hear a polite “Copied”.
Countdown
A deadline chip that reads “2d 4h left”. The server renders the end date in UTC inside <time dateTime>; after hydration it counts down on a shared clock, turns urgent near the end and shows local time on hover.
Data Table
Table primitives for reading figures: a sticky header, scroll-edge fades instead of hard dividers, sortable headers with aria-sort, and digits that line up.
Delta
A signed change next to a figure. Direction and sentiment are separate, so a falling cost can point down and still read as good news.
Disclosure
A native <details> that animates height and opacity both ways and reverses mid-flight. Wrap several in a DisclosureGroup for single-open behaviour built on the details name attribute.
Local Time
Shows a timestamp in the viewer's own time zone, or as “5 minutes ago”. The server renders UTC inside <time dateTime>, so the first paint and crawlers get a real date, then the text swaps after hydration.
Meter
A share of a whole as a hairline bar, with an optional tick for where the value should be, so it answers “ahead or behind?” without a second chart.
Notification Bell
A bell with an unread badge and a popover list. The panel scales from the bell's corner, the badge arrives from 0.9, and links render through your router.
Page States
Empty, error and loading states that share one shell. The retry action is a render prop so it can be your own button, and the skeleton shimmer is a linear, transform-only sweep that stops under reduced motion.
Panel
A report surface: one card whose sections stack on hairlines. Put stats, a chart and a table in one Panel and it reads as one document.
Reveal
Fades content up 12px as it scrolls into view. Runs on a CSS view timeline where supported, falls back to an IntersectionObserver, staggers groups 50ms apart, and stays still under reduced motion.
Segmented
A single-choice segmented control. A thumb slides under the selected segment, arrow keys move the selection, and one option is always selected.
Sparkline
A trend line with nothing around it, for a tile where the shape matters and the figure is printed beside it. Server-renderable, no chart library.
Star Rating
A star rating you scrub with a finger or the arrow keys. The fill follows the pointer 1:1 and commits on release. RatingDisplay shows a read-only score filled to any fraction.
Stat
Label, figure, delta: the unit for a number shown on its own. StatStrip splits a row of them on hairlines and StatRow fits one on a line.
Tier Slider
Pick a quantity from fixed price tiers with a native range input. The thumb rests only on tier stops and the price cross-fades between them.
Trend Chart
A smoothed line chart with no chart library. Hover, touch or arrow-key through it and a crosshair and tooltip follow 1:1.
More components
Masonry Lightbox
A masonry grid of photos. Tap one and it grows out of its tile into a lightbox over a thick material; close it and it flies back along the same path, or swipe it down and let go.
OG Image
Blueprint share cards for docs, home and error pages. Inline-styled primitives (canvas, wordmark, headline, lead, status, rule, footer) and three recipes that any ImageResponse renderer can draw at 1200×630. Rendering stays in your app's opengraph-image route.
Parallax Gallery
Photo columns that drift at different speeds as the section scrolls past, so a flat grid reads as depth. Pure CSS scroll-driven animation; still under reduced motion.
Photo Rail
A fanned rail of overlapping photo cards for a hero. The centre card is largest, the rest tilt alternately, and each straightens and lifts under a fine pointer.
Scroll Choreo
The heavy alternative to Reveal. One GSAP ScrollTrigger controller for a whole section: batched rises, clip-path media reveals, scrubbed parallax and hairline draws, opted into with data-choreo attributes. Needs gsap.
Snap Rail
A horizontal rail of any content. Drag it, flick it, wheel it or use the arrow keys; it settles on the nearest slide with a spring that keeps your release velocity, and fades out where slides run under the edge.
Foundations
Tokens, physics and hooks. Components pull these in on their own; install them directly to build your own.
@hone/styleEasing curves, durations, positive/negative colours, translucent materials and a reduced-motion base. Neutral palette only.
@hone/chart-formatCached Intl number formatting for data components, plus percent change helpers that return null instead of lying.
@hone/chart-geometryPure, dependency-free chart maths: padded domains, unit-box points, smooth and area paths, scrub index and axis label picking.
@hone/springInterruptible 1D spring (damping ratio + response), momentum projection and rubber-banding for gesture UI.
@hone/utilsThe cn() class-name helper (clsx + tailwind-merge).
@hone/use-client-valueRead a browser-only value (URL, storage, time zone) with no hydration mismatch.
@hone/use-nowA shared, boundary-aligned clock (per second, minute...) that renders null on the server.
@hone/use-reduced-motionHydration-safe prefers-reduced-motion, also honouring a data-reduce-motion attribute on <html>.
@hone/use-snap-trackDrag, flick and wheel a horizontal track onto snap points with velocity handoff, projection and rubber-banding.