React

Upgrade Guides

Guides you through checking compatibility and safely upgrading when updating Crispy package versions.

This guide explains how to upgrade between versions prior to Crispy React 2. To upgrade from Crispy React 1.2 to 2, you can refer to the Crispy React 2 Upgrade document, and all changes including new features can be found in Changelog.

Crispy React 1 includes breaking changes in minor versions.


Package Version Compatibility

In Crispy React 1, @seed-design/react and @seed-design/css were released as separate versions but were interdependent, and the peerDependencies declarations during this period sometimes had no upper limit or were entirely omitted. While declarations alone may pass validation, there were actually combinations where markup and styles didn't match. If you are using 1.x, check your current combination first according to the rules below before upgrading.

This table is not needed from Crispy React 2 onwards

From 2.0.0, strict SemVer is followed and peerDependencies declarations are accurate. If you are using 2.x, you can trust the peer declaration of the package as is. The content below is a record limited to the 1.x range.

Judgment Rules

@seed-design/css must be on the same minor line as @seed-design/react and must be at or above the floor specified in the table below.

If the lines are different (e.g., react 1.1.x + css 1.2.x), they are not compatible. Since the internal structure of Help Bubble·Radio Group changed in 1.2.0, applying 1.2 line styles to 1.1 line markup will break the screen. Even after 1.2.0, the 1.1 line continued to be released via backport, and the same fixes were reflected in the 1.2 line as separate versions. Mixing lines can cause you to hit "versions that don't yet have the fix."

@seed-design/react ↔ @seed-design/css

Rows represent installed react version, columns represent installed css version. ✅ Compatible · ⬇️ css is low (upgrade css) · ⬆️ css is high (upgrade react).

react \ css< 1.1.01.1.0 ~1.1.10 ~1.1.12 ~1.1.13 ~1.1.16 ~1.1.17 ~1.1.23 ~1.1.24 ~1.2.0 ~≥ 2.0.0
< 1.1.0✅⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️
1.1.0 ~ 1.1.9⬇️✅✅✅✅✅✅✅✅⬆️⬆️
1.1.10 ~ 1.1.11⬇️⬇️✅✅✅✅✅✅✅⬆️⬆️
1.1.12⬇️⬇️⬇️✅✅✅✅✅✅⬆️⬆️
1.1.13 ~ 1.1.15⬇️⬇️⬇️⬇️✅✅✅✅✅⬆️⬆️
1.1.16⬇️⬇️⬇️⬇️⬇️✅✅✅✅⬆️⬆️
1.1.17 ~ 1.1.22⬇️⬇️⬇️⬇️⬇️⬇️✅✅✅⬆️⬆️
1.1.23⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅✅⬆️⬆️
1.1.24 ~ 1.1.28⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅⬆️⬆️
1.2.0 ~ 1.2.15⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅⬆️
≥ 2.0.0⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅

Column headers like 1.1.10 ~ mean up to just before the next column, as in >= 1.1.10 < 1.1.12.

@seed-design/stackflow ↔ @seed-design/css

Since @seed-design/stackflow has no 1.2 line, the 1.1 line supports both css 1.1 and 1.2. So unlike react, you can mix lines. However, it breaks when crossing the boundary where AppScreen screen transitions changed to WAAPI-based (css 1.1.25 / 1.2.11, stackflow 1.1.22).

Symbols are the same as the table above, 🚫 represents known incompatible combinations, and ❌ represents css sections where WAAPI support has not yet been reflected.

stackflow \ css< 1.0.51.0.5 ~1.0.7 ~1.1.0 ~1.1.5 ~1.1.9 ~1.1.10 ~1.1.15 ~1.1.16 ~1.1.19 ~1.1.25 ~1.2.0 ~1.2.11 ~≥ 2.0.0
1.0.0✅✅✅⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️🚫
1.0.5⬇️✅✅⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️🚫
1.0.9⬇️⬇️✅⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️🚫
1.1.0 ~ 1.1.4⬇️⬇️⬇️✅✅✅✅✅✅✅🚫✅🚫🚫
1.1.5 ~ 1.1.8⬇️⬇️⬇️⬇️✅✅✅✅✅✅🚫✅🚫🚫
1.1.9 ~ 1.1.10⬇️⬇️⬇️⬇️⬇️✅✅✅✅✅🚫✅🚫🚫
1.1.11 ~ 1.1.14⬇️⬇️⬇️⬇️⬇️⬇️✅✅✅✅🚫✅🚫🚫
1.1.15⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅✅✅🚫✅🚫🚫
1.1.16⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅✅🚫✅🚫🚫
1.1.17 ~ 1.1.21⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅🚫✅🚫🚫
1.1.22 ~ 1.1.25⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅❌✅🚫
≥ 2.0.0⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️✅

The combination of stackflow 1.1.22 or later and css 1.2.0 ~ 1.2.10 (❌) is incompatible because WAAPI support was added from css 1.2.11. Either upgrade css to 1.2.11 or later, or use the css 1.1 line (1.1.25 or later).

Known Incompatible Combinations

CombinationSymptomSolution
stackflow < 1.1.22 + css >= 1.1.25(1.1 line) or css >= 1.2.11AppScreen screen transition animation and AppBar background breakUpgrade stackflow to 1.1.22 or later together
stackflow 1.x + css 2.xCombination crossing major boundaryUpgrade stackflow to 2.x together

The first item is a change where both css and stackflow changed together as AppScreen transitions switched to WAAPI-based. The css change was included in 1.1.25 (1.1 line backport) and 1.2.11 (1.2 line), and the corresponding stackflow change was included in 1.1.22.

If You Encounter a Version Not in the Table

The table is based on 1.x versions released up to the time this document was written. If a version is released after that, check the peer declaration of the installed package directly.

cat node_modules/@seed-design/react/package.json | grep -A5 peerDependencies


0.2.0 Stroke Semantic Token Name Refactoring

Direct judgment and code modification required

When upgrading from a version before 0.2.0, update the code using stroke color semantic tokens that you are using by referring to the items below. You can make bulk changes with codemod or substitute manually by referring to the table.

npx @seed-design/codemod@latest replace-semantic-stroke-color <target_path>
Before 0.2.0 TokenAfter 0.2.0 TokenRemarks
$color.stroke.neutral-muted$color.stroke.neutral-subtleThis item must be migrated first in order.
$color.stroke.on-image$color.stroke.neutral-subtle
$color.stroke.neutral$color.stroke.neutral-muted
$color.stroke.field-focused$color.stroke.neutral-contrast
$color.stroke.control$color.stroke.neutral-weak
$color.stroke.field$color.stroke.neutral-weak
$color.stroke.brand$color.stroke.brand-weak
$color.stroke.positive$color.stroke.positive-weak
$color.stroke.informative$color.stroke.informative-weak
$color.stroke.warning$color.stroke.warning-weak
$color.stroke.critical$color.stroke.critical-weak

See Available Transforms for details.


Upgrading to 1.0

Crispy React v1.0 Documentation

Crispy React documentation for version 1.0.

There are snippet (recommended combination) changes for the components below, but no other code changes are needed.

Snippet update required
npx @seed-design/cli@latest add-all --seed-react-version 1.0 --on-diff backup ui
  • Snackbar: Layout changes
    • add ui:snackbar
  • MannerTemp / MannerTempBadge: Reflects new 10-step temperature ranges.
    • add ui:manner-temp ui:manner-temp-badge
    • If there is code that directly specifies level, you need to verify that the temperature-specific ranges are displayed as intended.
  • SwitchMark / List Header added
    • add ui:switch, add ui:list

If there is code that directly imports and uses Snackbar/MannerTemp/MannerTempBadge from @seed-design/react, update it to match the new snippet structure.


Upgrading from 1.0 to 1.1

Crispy React v1.1 Documentation

Crispy React documentation for version 1.1.

1. Page Banner Structure Change

Snippet update required

PageBanner.TextContent has been renamed to PageBanner.Content, and the layout previously styled with Box has been replaced with PageBanner.Body.

There are snippet changes, so you need to add it again. No changes are needed to code that uses the snippet component. If there is code that directly imports and uses PageBanner from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:page-banner

2. Remove Text Field size="xlarge" and Provide Field-based Snippet

Snippet update and code changes required

The Text Field snippet component has been refactored to use the Field component internally. The onValueChange signature has been changed from ((value: string) => void) | undefined to ((values: { value: string; graphemes: string[]; slicedValue: string; slicedGraphemes: string[]; }) => void) | undefined. There are snippet changes, so you need to add it again. If there is code that directly imports and uses TextField from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:text-field

size="xlarge" has been removed. Please use size="large" (the default).

3. Convert Bottom Sheet to Drawer-based

Snippet update and code changes required

The Dialog-based Bottom Sheet has been converted to a Drawer-based one, adding features such as swipe to dismiss and snap points. There are snippet changes, so you need to add it again. If there is code that directly imports and uses BottomSheet from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:bottom-sheet

The snippet component BottomSheetContent's hideCloseButton (default: false) interface has been changed to showCloseButton (default: true).

<BottomSheetContent hideCloseButton /> 
<BottomSheetContent showCloseButton={false} /> 

4. Error State Snippet Change

Snippet update and code changes required

The Error State snippet has been changed to use Action Button (variant="ghost") internally, so it needs to be added again.

npx @seed-design/cli@latest add --seed-react-version 1.1 --on-diff backup ui:error-state

The snippet component ErrorState's secondaryActionProps type has been changed from React.ButtonHTMLAttributes<HTMLButtonElement> to ActionButtonProps. If there is code using secondaryActionProps, update it to match the new type.


Upgrading from 1.1 to 1.2

Crispy React v1.2 Documentation

Crispy React documentation for version 1.2.

The 6 h3 items below are independent, so they can be done in parallel.

1. Help Bubble Layout Change

Snippet update required

The snippet has been updated so that the new HelpBubble.Body wraps HelpBubble.Title and HelpBubble.Description. Code that uses components exported from the snippet, such as HelpBubbleTrigger and HelpBubbleAnchor, requires no changes other than re-fetching the snippet. If there is code that directly imports and uses HelpBubble from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:help-bubble

2. MenuSheetItem Layout Change

Snippet update and code changes required

The MenuSheetItem snippet component has been improved to allow adding a description, and the layout has changed. There are snippet changes, so you need to add it again. If there is code that directly imports and uses MenuSheetItem from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:menu-sheet

In code that uses the snippet component MenuSheetItem, please use the label prop instead of children, and the prefixIcon prop instead of <PrefixIcon />.

-<MenuSheetItem>
-  <PrefixIcon svg={<IconHouseLine />} />
-  Menu item
-</MenuSheetItem>;
+<MenuSheetItem prefixIcon={<IconHouseLine />} label="Menu item" />;

3. Modify Bottom Sheet and Menu Sheet to Have Safe Area by Default

Direct judgment required

BottomSheet.Content and MenuSheet.Content have been changed to have bottom safe-area padding by default. If you were adding safe-area padding directly to the sheet, remove it.

<BottomSheet.Content>
  <VStack paddingBottom="safeArea">...</VStack>
  <VStack>...</VStack>
</BottomSheet.Content>

4. Tag Group Layout Change

Snippet update and code changes required

A new snippet component is now provided for the Tag Group Item layout.

npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:tag-group

Replace the Tag Group imported from @seed-design/react with an import from the snippet (seed-design/ui/tag-group), and use the label prop instead of children, and prefixIcon/suffixIcon props instead of PrefixIcon/SuffixIcon.

import { TagGroupRoot, TagGroupItem } from "@seed-design/react"; 
import { TagGroupRoot, TagGroupItem } from "seed-design/ui/tag-group"; 

<TagGroupRoot>
  <TagGroupItem>
    <PrefixIcon svg={<IconLocationpinFill />} />
    Seocho 4-dong
  </TagGroupItem>
  <TagGroupItem label="Seocho 4-dong" prefixIcon={<IconLocationpinFill />} />
</TagGroupRoot>;

If you need customization such as specifying a different color only for the icon, you can use TagGroup.Item and TagGroup.ItemLabel from @seed-design/react together.

import { TagGroupRoot } from "seed-design/ui/tag-group";
import { TagGroup as SeedTagGroup } from "@seed-design/react";

<TagGroupRoot>
  {/* ... */}
  <SeedTagGroup.Item>
    <Icon svg={<IconMegaphoneFill />} color="fg.brand" />
    <SeedTagGroup.ItemLabel>Ad</SeedTagGroup.ItemLabel>
  </SeedTagGroup.Item>
</TagGroupRoot>;

5. Select Box Layout Change

Snippet update and code changes required

There are snippet changes, so you need to add it again. If there is code that directly imports and uses Select Box-related components from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:select-box
  • Changes the CheckSelectBoxGroup / RadioSelectBoxRoot components to a grid layout with gap included by default.
    • Removes the VStack that used to wrap the children, so CheckSelectBoxGroup and RadioSelectBoxRoot now wrap the items directly.
    • If the VStack has styles other than gap, you can leave the VStack outside CheckSelectBoxGroup / RadioSelectBoxRoot to preserve the layout.
    • Also check whether you are wrapping VStack with asChild, as in <VStack asChild><CheckSelectBoxGroup>...</CheckSelectBoxGroup></VStack>.
  • Changes so that the Checkmark or Radiomark inside Select Box is no longer displayed automatically.
    • Add suffix={<CheckSelectBoxCheckmark />} / suffix={<RadioSelectBoxRadiomark />} to CheckSelectBox / RadioSelectBoxItem.
import { VStack } from "@seed-design/react"; 
import { CheckSelectBoxGroup, CheckSelectBox } from "seed-design/ui/select-box"; 
import {
  CheckSelectBoxGroup, 
  CheckSelectBox, 
  CheckSelectBoxCheckmark, 
} from "seed-design/ui/select-box"; 

<CheckSelectBoxGroup>
  <VStack gap="spacingY.componentDefault">
    <CheckSelectBox label="Option 1" />
    <CheckSelectBox label="Option 2" />
  </VStack>
  <CheckSelectBox label="Option 1" suffix={<CheckSelectBoxCheckmark />} /> //
  <CheckSelectBox label="Option 2" suffix={<CheckSelectBoxCheckmark />} /> //
</CheckSelectBoxGroup>;
import { VStack } from "@seed-design/react"; 
import {
  RadioSelectBoxRoot, 
  RadioSelectBoxItem, 
} from "seed-design/ui/select-box"; 
import {
  RadioSelectBoxRoot, 
  RadioSelectBoxItem, 
  RadioSelectBoxRadiomark, 
} from "seed-design/ui/select-box"; 

<RadioSelectBoxRoot defaultValue="option1" aria-label="Select an option">
  <VStack gap="spacingY.componentDefault">
    <RadioSelectBoxItem value="option1" label="Option 1" />
    <RadioSelectBoxItem value="option2" label="Option 2" />
  </VStack>
  <RadioSelectBoxItem
    value="option1"
    label="Option 1"
    suffix={<RadioSelectBoxRadiomark />}
  />
  <RadioSelectBoxItem
    value="option2"
    label="Option 2"
    suffix={<RadioSelectBoxRadiomark />}
  />
</RadioSelectBoxRoot>;

The 3 items below can affect each other, so proceed in order.

Remove Radio Item invalid prop

Detectable via error

Removes the invalid prop from RadioGroupItem, RadioChipItem, RadioSelectBoxItem, and ListRadioItem. If there is code that styles based on data-invalid, verification is needed.

Change Component Names for SwitchMark and RadioMark

Snippet update recommended

The names exported from the snippet have changed. You can update by re-fetching the snippet.

npx @seed-design/cli@latest add --on-diff backup ui:switch ui:radio-group
import { SwitchMark } from "seed-design/ui/switch"; 
import { Switchmark } from "seed-design/ui/switch"; 
import { RadioMark } from "seed-design/ui/radio-group"; 
import { Radiomark } from "seed-design/ui/radio-group"; 

RadioGroup Layout Cleanup

Direct judgment and code changes required

The layout of the RadioGroup-related snippet component has changed, so it needs to be added again. If there is code that directly imports and uses Radio Group-related components from @seed-design/react, update it to match the new snippet structure.

npx @seed-design/cli@latest add --seed-react-version 1.2 --on-diff backup ui:radio-group
  • Modifies the snippet component RadioGroup to have its own gap and 100% width.
    • Please remove the VStack that used to wrap the children.
    • If the VStack has styles other than gap, you can leave the VStack outside RadioGroup to preserve the layout.
    • Also check whether you are wrapping VStack with asChild, as in <VStack asChild><RadioGroup>...</RadioGroup></VStack>.
  • The @seed-design/react component RadioGroup.Root has been modified to no longer handle radio-related behavior, and its own styles have been added.
    • If you need radio-related headless behavior, use RadioGroup.Root from @seed-design/react/primitive.
import { RadioGroup } from "@seed-design/react"; 
import { RadioGroup } from "@seed-design/react/primitive"; 
Items announced as scheduled for removal in Crispy React 1.3 were removed in 2

The tokens and options announced in the 1.2 release as "scheduled for removal in 1.3" ($gradient.fade-layer-*, Chip Tabs brandSolid, Checkbox weight, Switch size, camelCase layout values) were actually removed in Crispy React 2. $color.bg.layer-fill was removed in 2.0.0 but re-added in 2.1.0, so it can still be used as-is. See the v2 upgrade guide for details. Crispy React 1.3 was never released.

Table of contents