惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
量子位
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
Intezer
Scott Helme
Scott Helme
A
About on SuperTechFans
博客园 - 司徒正美
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog
Forbes - Security
Forbes - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Spread Privacy
Spread Privacy
T
Tailwind CSS Blog
S
Security Affairs
宝玉的分享
宝玉的分享

StackBlitz Blog

Cloudflare is now backing pkg.pr.new’s data infrastructure! Bolt 100K Open Source Fund ViteConf 2024 was a blast Unbundling the JavaScript ecosystem StackBlitz is joining the Open Source Pledge Announcing TutorialKit: Interactive tutorials in the browser Get ready for ViteConf 2024 Announcing pkg.pr.new StackBlitz welcomes Ari Perkkiö, core team member of Vitest Catch us at Figma Config WebContainers and the future of web dev (interview with Jòan Varvenne) Open Source at StackBlitz Avoiding CORS issues with this one simple trick How to document design system components What is Vite (and why is it so popular)? Improving the developer experience of enterprise design systems Flow state: Why fragmented thinking is worse than any interruption The Self-Rendering Eval Shirt Starters Upgrade: WebContainers and Vite Putting the Dev in Figma’s Dev Mode Announcing StackBlitz Self-hosted Building Together in Illinois 5 lessons design systems teams can learn from open-source maintainers Announcing Native Language Support in WebContainers Introducing StackBlitz Teams ViteConf is back! Bringing Sharp to WebAssembly and WebContainers npm, yarn and pnpm are now supported natively in WebContainers The Atomic Waltz: Unraveling WebAssembly Issues in V8 and SpiderMonkey WebContainers now run on Safari, iOS, and iPadOS Now I am become the Destroyer of Threads WebContainer API is here. StackBlitz September 2022 Update StackBlitz August 2022 Update StackBlitz July 2022 Update Introducing: Collections and Social Previews! Down the caching-hole: adventures in Announcing ViteConf StackBlitz June 2022 Update The Fox and the Bolt: Bringing WebContainers to Firefox WebContainers are now supported in Firefox on desktop and Android StackBlitz May 2022 Update StackBlitz April 2022 Update Cloudflare and StackBlitz partner to bring Cloudflare Workers to your browser Powering over 2M developers a month, StackBlitz has raised $7.9M StackBlitz March 2022 Update Announcement: WebContainers are out of beta in Chromium StackBlitz has joined the Bytecode Alliance StackBlitz February 2022 Update Bringing WebContainers to all Browsers: a call to action for COEP Credentialless Cross-Browser support with Cross-Origin isolation StackBlitz welcomes Patak, core maintainer of Vite Chasing Memory Bugs through V8 and WebAssembly Remix v1 has landed, and it runs on WebContainers SvelteKit is now fully supported in WebContainers We Shopify partners with StackBlitz to bring Hydrogen development in-browser StackBlitz September 2021 Update Introducing Vite.new Templates! Announcing WebContainers Astro support! 🛰 Introducing: SQLite3 support in WebContainers! 🧪 StackBlitz July 2021 Update StackBlitz June 2021 Update Introducing WebContainers: Run Node.js natively in your browser Interactive Docs: The new norm for Remote Work
What is Storybook? An Overview for Developers
Tomek Sułkowski · 2024-03-13 · via StackBlitz Blog

At StackBlitz, we’re big fans of Storybook and we’re joining the rest of the web ecosystem in congratulating the team on the release of Storybook 8.

In this post, we want to share a few reasons we love Storybook, some of the things we’re most excited about in their most recent release, and a new way you can use Storybook and StackBlitz together.

But first, let’s start with a quick primer…

What is Storybook?

Storybook is a widely-used, open source tool that enables frontend developers to build and test UI components. The open source version (and the commercial version offered by Chromatic) is used by frontend and design system teams at companies like GitHub, Dropbox, and Airbnb in addition to thousands of individual developers.

Its popularity is at least partly explained by how easy Storybook makes it to build, catalog, and test frontend components that are used across different platforms and applications. While Storybook imports the same components that your application uses, it’s entirely decoupled from those apps, allowing you to build, test, and evolve them independently. This concept is what the Storybook team calls “building in isolation” and mirrors the centralized design system approach we see in larger organizations.

What we love about Storybook

Turns out, maintaining a component library in parallel to your core application has a lot of benefits. Storybook enables teams to take advantage of this model in a few key ways:

A single, well-documented catalog

Creating a Storybook site is a rite of passage for any design system team. It’s frequently one of the first ways teams catalog their various components and share them with their users as Storybook makes it simple to reference your components and automatically create a full set of documentation with examples of the different states and properties a component has.

(If you’ve been wondering where their name comes from, the Storybook team calls the in-code expressions of a component’s states and properties “stories.”)

Simplified testing

Testing individual components and their various states in isolation makes it easier to hone in on issues specific to how a component is constructed. This speeds up the development process by preventing teams from debugging various state/platform permutations across multiple applications.

Beyond simple inspection, Storybook allows you to connect real data and combine components together to better simulate how the component will work in production.

Facilitates reuse and collaboration

At the heart of a design system is its ability to reduce the amount of repeated work required when building a new app. Storybook encourages designing components to be reused, reducing the amount of duplicate code. Additionally, it creates a shared space where developers and designers can view and explore the available components and their variations

Large and thriving community

In addition to supporting all of the most popular view layers including React, Vue, Svelte, and Angular, the Storybook team is constantly adding and improving support for the broader web ecosystem.

In his recent talk at ViteConf, evangelist Jeppe Reinhold shared how Storybook has recently improved integration with SvelteKit and Qwik, making it easier for developers using those tools to develop, test, and document their components.

What we’re excited about in Storybook 8

Deeper support for Vite and Vitest

Initially released in 2022, Vite support in Storybook is getting even better with Storybook 8. Notably, Storybook’s Jest-based testing has been retooled to support Vitest. Jeppe demonstrated how this works in his ViteConf talk

Snappier loads

Storybook 8 is expected to cut load times through a number of performance-focused improvements and optimizations.

Native visual testing

An example of the Visual Tests addon with visual diffs

Image courtesy of Storybook.

The Storybook team is releasing one of their most popular enterprise features as an addon to their core platform. The Visual Tests addon enables you to compare changes by creating a pixel-by-pixel diff that you can then visually inspect. You can even accept or reject the changes from the Storybook UI, ensuring updates don’t break your components.

Using Storybook with StackBlitz

Storybook’s documentation and testing serves as a foundational piece of any design system. Borrowing from the techniques used by some of the most popular open source projects, design systems teams are increasingly incorporating interactive, fullstack components into their documentation. To make this more accessible for all teams using Storybook, we’re excited to share our StackBlitz addon for Storybook.

A Storybook story with the StackBltiz addon installed

The StackBlitz addon for Storybook allows you to open any story in StackBlitz with a single click.

With our addon, you can inspect and manipulate a component’s properties in Storybook and then open that component in StackBlitz to start building with it in a fully browser-based development environment. This not only makes it easier to start building with your design system but also helps you get an idea into a working prototype within minutes.

Congratulations again to the Storybook team on the release of Storybook 8. We’re so excited to be a part of the web community with you and can’t wait to see what you build next.


Thank you to the Storybook team for helping to review this post!

Founding Engineer & DevRel at StackBlitz. Let's talk about docs, live examples, teaching, and experimenting in browsers!