Storybook v10 is now supported. The addon also becomes an ESM-only package. Due to these changes, it is not available for versions earlier than v10.
Storybook v9 is now supported. However, due to changes in the internal package, it is not available for versions earlier than v9.
The withQuery decorator is not necessary anymore and therefore its export was removed from the package. It's an internally defined decorator which is automatically applied to every story you have. Please remove from your stories/preview files:
import React from "react";
import { Button } from "../Button";
-import { withQuery } from "@storybook/addon-queryparams";
export default {
title: "Button",
component: Button,
- decorators: [withQuery],
parameters: {
query: {
greeting: "Hello world!",
},
},
};