No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

Migration guide

Deprecated components

  • Cycle button: Use the quiet variant of action button with the appropriate icon(s) instead. Any icon swapping that happens on-click/on-key should be handled by the implementation.
  • Quick actions: Use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead.
  • Search within: Use a search field with a separate control to filter the search instead.
  • Split button: Use a button group to show any additional actions related to the most critical action. Reference Spectrum documentation for more information.

Grays

Gray migration guide

Examples of using the new grays

  • Gray-25, -50, and -75 are reserved for background layers.
  • Gray-100, -200, and -300 are used for lower contrast component background progressions or borders.
  • Gray-800 and -900 are used for higher contrast component backgrounds such as text and active borders. This ensures that components are always visible, regardless of the background color.

Transparent colors

Transparent white

Spectrum 2Spectrum 1
ColorValueOpacityOpacity
transparent-white250
transparent-white500.04
transparent-white750.07
transparent-white1000.110
transparent-white2000.140.1
transparent-white3000.170.25
transparent-white4000.210.4
transparent-white5000.390.55
transparent-white6000.510.7
transparent-white7000.660.8
transparent-white8000.850.9
transparent-white9000.941
transparent-white10001

Transparent black

Spectrum 2Spectrum 1
ColorValueOpacityOpacity
transparent-black250
transparent-black500.03
transparent-black750.05
transparent-black1000.090
transparent-black2000.120.1
transparent-black3000.150.25
transparent-black4000.220.4
transparent-black5000.440.55
transparent-black6000.560.7
transparent-black7000.690.8
transparent-black8000.840.9
transparent-black9000.931
transparent-black10001