@storybook/addon-backgrounds 8.4.0-alpha.8 → 8.4.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Storybook Addon Backgrounds can be used to change background colors inside the preview in [Storybook](https://storybook.js.org).
|
4
4
|
|
5
|
-
[Framework Support](https://storybook.js.org/docs/
|
5
|
+
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
|
6
6
|
|
7
7
|
![React Storybook Screenshot](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/backgrounds/docs/addon-backgrounds.gif)
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Backgrounds is part of [essentials](https://storybook.js.org/docs/
|
11
|
+
Backgrounds is part of [essentials](https://storybook.js.org/docs/essentials) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
|
12
12
|
|
13
13
|
```sh
|
14
14
|
npm i -D @storybook/addon-backgrounds
|
@@ -16,7 +16,7 @@ npm i -D @storybook/addon-backgrounds
|
|
16
16
|
|
17
17
|
## Configuration
|
18
18
|
|
19
|
-
Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/
|
19
|
+
Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project):
|
20
20
|
|
21
21
|
```js
|
22
22
|
export default {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/addon-backgrounds",
|
3
|
-
"version": "8.4.0-
|
3
|
+
"version": "8.4.0-beta.0",
|
4
4
|
"description": "Switch backgrounds to view components in different settings",
|
5
5
|
"keywords": [
|
6
6
|
"addon",
|
@@ -60,13 +60,13 @@
|
|
60
60
|
"ts-dedent": "^2.0.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
|
-
"@storybook/icons": "^1.2.
|
63
|
+
"@storybook/icons": "^1.2.12",
|
64
64
|
"react": "^18.2.0",
|
65
65
|
"react-dom": "^18.2.0",
|
66
66
|
"typescript": "^5.3.2"
|
67
67
|
},
|
68
68
|
"peerDependencies": {
|
69
|
-
"storybook": "^8.4.0-
|
69
|
+
"storybook": "^8.4.0-beta.0"
|
70
70
|
},
|
71
71
|
"publishConfig": {
|
72
72
|
"access": "public"
|