TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Vite plugin for React previews (minimal config, Storybook alternative)

2 点作者 diegof799 个月前
While I have used StoryBook since its early days, in my last projects, I wanted something simple that only provides a playground. I created this plugin after implementing a few quick-and-dirty playgrounds using Vite glob imports.<p>The plugin does not replace StoryBook, as it only provides a quick playground and doesn&#x27;t plan to have any of its features. However, it&#x27;s a fast-compatible alternative if you use Vite and want to play with your components visually.<p>It&#x27;s intentionally lightweight and extensible. While I prefer using separate files with the &quot;.preview.tsx&quot; extension, you can opt for &quot;.stories.tsx&quot; to use it alongside Storybook. Alternatively, you can customize it to use a &quot;preview&quot; export (similar to SwiftUI) with minimal programming effort.

暂无评论

暂无评论