Skip to content

feat: add Storybook stories for various UI components including NavTa…#217

Draft
IamKirbki wants to merge 1 commit intomainfrom
feat/storybook
Draft

feat: add Storybook stories for various UI components including NavTa…#217
IamKirbki wants to merge 1 commit intomainfrom
feat/storybook

Conversation

@IamKirbki
Copy link
Copy Markdown
Contributor

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:

  • Added Storybook configuration files (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]
  • Updated package.json to add Storybook scripts (storybook, build-storybook) and all necessary Storybook, Chromatic, and related dependencies. [1] [2]

Component Stories:

  • Added example stories for several UI components, including CodeExample, DataTable, Heading, IconMosaic, Menu, Modal, CursorPagination, and Stack, demonstrating their usage and variations. [1] [2] [3] [4] [5] [6] [7] [8]

Linting and Tooling:

  • Integrated eslint-plugin-storybook for 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

…bs, Pagination, Popover, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Sonner, Switch, Table, Tabs, TemplateInput, Textarea, Tooltip, and UserImportDialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant