feat: add Storybook stories for various UI components including NavTa…#217
Draft
feat: add Storybook stories for various UI components including NavTa…#217
Conversation
…bs, Pagination, Popover, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Sonner, Switch, Table, Tabs, TemplateInput, Textarea, Tooltip, and UserImportDialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces Storybook to the project, enabling interactive documentation and development for UI components. It adds Storybook configuration, supporting files, and several example stories for existing components. Additionally, it integrates Storybook-related linting and scripts, and updates dependencies accordingly.
Storybook Integration and Configuration:
main.ts,preview.ts) to set up Storybook with Vite, Tailwind CSS, accessibility, documentation, and onboarding addons. Also included path aliasing for easier imports. [1] [2]package.jsonto add Storybook scripts (storybook,build-storybook) and all necessary Storybook, Chromatic, and related dependencies. [1] [2]Component Stories:
CodeExample,DataTable,Heading,IconMosaic,Menu,Modal,CursorPagination, andStack, demonstrating their usage and variations. [1] [2] [3] [4] [5] [6] [7] [8]Linting and Tooling:
eslint-plugin-storybookfor linting Storybook stories and updated ESLint configuration to include the recommended Storybook plugin rules. [1] [2] [3]These changes lay the foundation for documenting and testing UI components interactively, improving both developer experience and component quality.…bs, Pagination, Popover, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Sonner, Switch, Table, Tabs, TemplateInput, Textarea, Tooltip, and UserImportDialog