Repository navigation
Releases
Releases · cherry-design-system/react
v2.0.1
Added
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
Changed
- 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 an "AI can make mistakes" line; the prop itself is unchanged
v2.0.0
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.
Added
- 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 an AI 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 - Brands from one accent color with
createBrand(), which derives hover, tint, text and ring shades for both modes as validated plain CSS - 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
- Per-component CSS (
css/<name>.css), token names in TypeScript (/tokens) andstyle-api.json, which lists every class,data-*attribute and allowed value - An agent skill in
skills/cherry-react, generated from the component source, that documents every component, its props and its accessibility