Changelog
@cherry-design-system/react is currently at version 2.0.1. The entries below follow Keep a Changelog, and the project adheres to Semantic Versioning. Release notes for cherry-styled-components are in the 1.x documentation, under the version switcher.
2026-11-25
Navigation with a router: NavPill can stick or float, track the current route and in-page sections, and NavItem renders your router's link. See NavPill and Installation.
NavPillposition:"static"(default),"sticky"or"fixed". A fixed pill floats over the page on a translucent, blurred surface and slides in from its edgeNavPillplacement:"top","bottom","top-start","top-end","bottom-start"or"bottom-end"for a sticky or fixed pill (sticky uses only the top or bottom).startandendfollow the writing direction, the distance to the edge is--cherry-nav-pill-offset(16px), and the safe-area insets keep it clear of notches and home barsNavPilltrackRoute: marks the link for the current URL path as the current page (aria-current="page", the deepest match wins, so/docs/buttonbeats/docs) and follows client-side route changes in Next.js and other routers. A link's ownactiveprop always winsNavPilltrackSections: highlights in-page links (#section, or/path#sectionon that path) as their section scrolls into view, witharia-current="location". While a section is active it takes the highlight; the current-page link keeps its meaningNavItemasChild: renders your router's link (Next.js<Link>, React Router, TanStack) as the item, so clicks navigate client-side instead of reloading the page. The link keeps the item's class, state, icon and trackinguseActiveSection(ids)andgetActiveSection(ids): the same section tracking for a table of contents or a docs sidebar- A sticky or fixed pill offsets anchor jumps so headings never land under it, and a fixed bottom pill reserves room under the page's last content
- The README shows npm and license badges, a light and dark component showcase, and release and security sections
- The agent skill documents navigation with a router:
asChildwith Next.js<Link>,activefromusePathname()versustrackRoute, section tracking and positions (references/setup.md), plus a rule that router links go throughasChild ChatInput'sfootnoteexamples no longer suggest a disclaimer line; the prop itself is unchanged
2026-11-25
The first release of @cherry-design-system/react, cherry's second generation and the successor to cherry-styled-components. Components ship static CSS in @layer cherry and are styled through --cherry-* tokens: no CSS-in-JS, no theme provider, Server Components ready. See Migrating from 1.x.
- More than 60 components: form controls (Button, IconButton, ConfirmButton, Input, Textarea, Password, Select, Combobox, Checkbox, RadioGroup, Toggle, Range, NumberField, OTPInput, Dropzone), date and time pickers (Calendar, DatePicker, TimePicker, DateTimePicker), navigation (Tabs, Sidebar, NavPill, Breadcrumb, Pagination, Stepper, Menu), overlays (Modal, Sheet, Popover, Tooltip, SearchDialog, Toast), content and data (Card, Table, StatCard, Avatar, Badge, Tag, Callout, Banner, EmptyState, Progress, Skeleton, Prose, CodeBlock, Snippet), layout primitives (Container, Grid, Flex, Stack) and a chat kit
- Light and dark mode switched by a class on
<html>, set before the first paint bythemeInitScript, with a light, dark or system preference (useColorMode,ThemeToggle) and per-section modes throughdata-cherry-mode. See Dark mode - Brands from one accent color with
createBrand(), which derives hover, tint, text and ring shades for both modes as validated plain CSS. See Brands - WCAG 2.2 AA: checked in CI with axe in light and dark at 1280px and 320px with every popup open, plus focus visibility, focus traps, Windows High Contrast and reflow. See Accessibility
- Per-component CSS (
css/<name>.css), token names in TypeScript (/tokens) andstyle-api.json, which lists every class,data-*attribute and allowed value. See Styling - An agent skill in
skills/cherry-react, generated from the component source, that documents every component, its props and its accessibility. See Skill for AI agents