0.4.0 • Published 5 months ago
@washingtonpost/storybook-addon-web-vitals v0.4.0
Storybook Addon Web Vitals
Storybook Addon Web Vitals can be used for instant feedback on loading, interactivity, and layout shift metric for each story. We use the web-vitals.
We report on INP, CLS, and LCP.
Getting Started
Requires Storybook 8
First, install the addon
npm i -D @washingtonpost/storybook-addon-web-vitals
Then, add following content to .storybook/main.js
:
module.exports = {
addons: ["@washingtonpost/storybook-addon-web-vitals"],
};
Usage
See toolbar for feedback on INP, CLS and LCP
CLS changes will highlight offending elements based on results from web-vitals
New results are logged to the console as they come in to provide the full data object from web-vitals
0.3.1--canary.e5b7c90.0
5 months ago
0.4.0--canary.0cf1132.0
5 months ago
0.4.0
5 months ago
0.3.1--canary.338b2a2.0
5 months ago
0.3.1--canary.62d7012.0
5 months ago
0.3.1--canary.996c2d4.0
5 months ago
0.4.0--canary.84aa6c7.0
5 months ago
0.3.0
3 years ago
0.2.0--canary.626f4cc.0
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.1-canary.d3d9448.0
4 years ago
0.0.1-canary.35ad82a.0
4 years ago
1.2.2
4 years ago