Skip to content
Ginga UI
Ginga UI
日本語

Getting started

  • Overview
  • Quick start
  • Theme generation
  • Custom rendering
  • All components

Forms

  • Button
  • Checkbox
  • Input
  • Radio
  • Questionnaire
  • SegmentedControl
  • Select
  • ComboBox
  • NumberField
  • SearchField
  • Slider
  • Switch
  • FormControl

Display

  • Accordion
  • Alert
  • AlertDialog
  • Badge
  • CodeBlock
  • Card
  • Dialog
  • Drawer
  • Image
  • List
  • Popover
  • Menu
  • Tooltip
  • Table
  • Tab
  • Toast
  • Trace

Typography

  • Heading
  • Paragraph

Navigation

  • Anchor

Layout

  • Box

Resources

  • Changelog
  • GitHub (opens in a new tab)

Logo: Twemoji (opens in a new tab) (CC-BY 4.0)

Changelog

Changes to @ginga-ui/core and @ginga-ui/utils, listed by version. Both packages are always released with the same version.

v0.17.0

2026-11-24

Breaking changes

  • Packages are now ESM only. The CommonJS build failed to load CSS and did not work.
  • The react and react-dom peer dependencies now require 19 or later. Pass ref as a regular prop.
  • State props were renamed from isDisabled and similar to disabled / required / selected / readOnly / invalid / expanded / dismissable.
  • The Modal backdrop is now a separate ModalOverlay. Style it with overlayClassName, and set dismissable to close on an outside click.
  • Drawer with dismissable={false} now stays modal and ignores outside clicks and Esc.
  • FormControl now takes label instead of title, and links the label to its field automatically.
  • Heading level is now a number such as 1 instead of a string such as "h1".
  • alt is now required on Image.
  • Table selection keys are now each row's id (or the value returned by getRowKey) instead of the row index.
  • CardDescription was removed. Put any element inside CardHeader instead.
  • generateTheme now returns { type: "error", message } on failure. Retries and the maxRetries option were removed.
  • Removed the unused generateColors / generateColorsMap / generateIntermediateColors.

Added

  • Added Tooltip, Menu, ComboBox, NumberField, and SearchField.
  • Every component accepts render, so the root element can be rendered by another component such as next/link.
  • Added description and errorMessage to Select, SliderLabel to Slider, and size="lg" to SegmentedControl.

Changed

  • Theme generation now validates the format and range of each generated value before writing CSS, and always corrects colors with too little contrast.
  • SegmentedControl now fills the selected item with the accent color and slides the highlight when the selection changes.
  • Tabs now underline the selected tab with the accent color.
  • Table now has an outer border and dividers between rows.
  • A Card rendered as a link now underlines its title and shows a focus ring.
  • Input and Select now match the height of Button, and form control borders are neutral gray.

Fixed

  • Fixed focus escaping from Popover and its arrow appearing offset and too small.
  • Fixed Table throwing when showHeader={false} was set or isRowHeader was omitted.
  • Fixed an error when passing a function as className.
  • The Toast close button and Trace status labels are now announced in the page language.

v0.16.0

2026-11-05

Breaking changes

  • Removed QuestionnaireError. The next and submit buttons are now disabled until required questions are answered.

Added

  • Added Questionnaire, Trace, and SegmentedControl.
  • Added filenameIcon / files[].icon to show an icon next to CodeBlock file names.
  • Added fullWidth to Tabs and emptyMessage to Table for the empty state.

Changed

  • Refreshed the CodeBlock design and turned the copy button into an icon.
  • Accordion now animates its height when opening and closing.
  • Buttons in CardFooter are now right-aligned, and Toast and SegmentedControl use a border instead of a shadow.

Fixed

  • Fixed CodeBlock code wrapping under the copy button when there is no file name.

v0.15.0

2026-10-22

Breaking changes

  • Built-in icons were removed. Pass icons for Accordion, Select, Alert, AlertDialog, Toast, and CodeBlock through props such as icon.
  • Class names for List, Table, and Select changed to ginga-list-item, ginga-table-row, ginga-select-label, and so on.
  • AccordionTrigger is now wrapped in a heading element (h3 by default).
  • Popover props were narrowed down to placement, offset, crossOffset, shouldFlip, showArrow, and a few others.

Added

  • Added dark mode. It follows the OS setting and can be fixed with <html data-theme="light"> / "dark". A generated theme takes precedence over dark mode.
  • ThemeClient accepts apiKey in its constructor. Environment variables are used when it is omitted.
  • Added the ghost variant, size (sm / md / lg), and startIcon / endIcon to Button.
  • Added files to CodeBlock for switching between files in tabs, striped to Table, and range selection to Slider.
  • Added derived tokens such as --color-text, --color-surface, --radius-*, and --focus-ring-* to variables.css, and exported SelectItem.

Changed

  • Redesigned every component. Focus rings and contrast meet WCAG 2.2 AA.
  • Default ThemeClient models are now gpt-6-luna for OpenAI, gemini-3.8-flash for Google, and claude-haiku-5-5 for Anthropic.
  • Drawer with dismissable={false} no longer dims the page, so the page stays usable while it is open.
  • The page can scroll while a Popover is open, and the popover follows its trigger.
  • On narrow screens, Tabs and CodeBlock file names scroll horizontally, and Table is wrapped in a scrollable container.
  • Generated theme CSS now includes a color-scheme that matches the background brightness.

Fixed

  • Fixed Heading ignoring its size, the Slider thumb being off center, and Table row selection getting out of sync with its checkboxes.

v0.14.0

2026-08-18

Added

  • Added AlertDialog, Drawer, Popover, Alert, Badge, Toast, and CodeBlock.
  • Added the status colors --color-info / --color-success / --color-warning / --color-danger.

Changed

  • Card and Anchor with variant="button" now look consistent with CodeBlock and Button.

v0.13.3

2026-06-16

Changed

  • @ginga-ui/core and @ginga-ui/utils are now always released with the same version.

Fixed

  • Each component now loads its own CSS automatically, and the "use client" directive is no longer lost in the Next.js App Router.

v0.12.2

2026-06-16

Changed

  • Replaced the build tooling. Imports work the same as before.

v0.12.1

2026-03-09

Fixed

  • Fixed the release process. There are no user-facing changes.

v0.12.0

2026-03-09

Breaking changes

  • Per-component packages such as @ginga-ui/button were merged into @ginga-ui/core. Import from @ginga-ui/core instead.

v0.11.0

2025-12-23

Breaking changes

  • Rebuilt theme generation on the Vercel AI SDK. ThemeClient now takes a provider.

Added

  • Launched the documentation site.

v0.10.3

2025-03-08

Breaking changes

  • Dropped CSS Modules in favor of fixed ginga-* class names, so styles can be overridden from your own CSS.

v0.10.0

2025-02-28

Added

  • ThemeClient now supports Anthropic models and lets you choose the model.

v0.9.0

Breaking changes

  • Packages moved to the @ginga-ui scope and were split into one package per component.

v0.8.1

2025-01-30

Breaking changes

  • State props were unified as isDisabled, isSelected, isRequired, and so on.

Added

  • Added the reverse variant to Button and exported ListItem.

Fixed

  • Paragraph now renders a p element.

v0.8.0

2025-01-22

Added

  • Added the MIT license.

Fixed

  • Fixed the text color of Heading and Paragraph.

v0.7.11

2025-01-14

Breaking changes

  • Removed Container and Flex. Use Box instead.

Added

  • Added Box.

v0.7.10

2025-01-13

Changed

  • Revised the Button props.

Fixed

  • Fixed the CSS file name.

v0.7.9

2025-01-09

Added

  • Added a CommonJS build and made components importable from ginga-ui/core.

Fixed

  • Fixed ThemeClient failing to import in Next.js.

v0.7.8

2025-01-08

Fixed

  • Fixed the build configuration.

v0.7.7

2025-01-07

Added

  • Added an option for server-side rendering.

v0.7.6

2025-01-07

Added

  • Added List.

Fixed

  • Fixed the peer dependencies.

v0.7.5

2025-01-06

Fixed

  • Fixed an error caused by React.

v0.7.4

2025-01-06

Added

  • Components can be imported from their own files.

v0.7.3

2025-01-06

Changed

  • Removed React.forwardRef from every component and adjusted the text color.

v0.7.2

2025-01-06

Added

  • Added "use client" to every component so they can be used from Server Components.

Fixed

  • Fixed a bug in ButtonGroup.

v0.7.1

2025-01-06

Added

  • Added Table.

Fixed

  • Improved the contrast ratio check for generated themes.

v0.7.0

2025-01-03

Added

  • Added Dialog and Select.

Changed

  • Generated themes now keep a contrast ratio of at least 3.0.

v0.6.0

2025-01-03

Breaking changes

  • Theme generation is now called through the ThemeClient class.

Added

  • Theme generation now supports Gemini.

v0.5.0

Added

  • Themes are regenerated when the contrast ratio falls below 3.0, and OpenAI responses are validated.
  • Published Storybook on Chromatic.

v0.4.2

2024-12-09

Changed

  • Each component now uses its own CSS variables.

Fixed

  • Improved the accessibility of Accordion.

v0.4.1

Added

  • Added Paragraph and Image, and revised the design of every component.

Fixed

  • Fixed CSS variables not being set correctly.

v0.4.0

Added

  • Added Container and Flex, and theme generation accepts OpenAI client options.

v0.3.0

2024-11-12

Added

  • Color scales are now built from the generated primary and secondary colors, and every component was redesigned.

v0.2.2

2024-11-06

Added

  • Added Slider, Accordion, and generateColorMap for building color scales.

v0.2.0

2024-10-24

Added

  • Added ButtonGroup.

v0.1.0

2024-10-22

Added

  • Added Card, Link, FormControl, RadioGroup, and CheckboxGroup.
  • CSS variables can be generated with the OpenAI API.

v0.0.0

Added

  • Initial release with Button, Switch, Checkbox, Input, and Heading.