Skip to content

PacktPublishing/Build-captivating-UIs-with-Storybook-and-React

Repository files navigation

Build Captivating UIs with Storybook and React

Welcome to the repository for "Build Captivating UIs with Storybook and React"! This repository contains the code examples and resources accompanying the book.

Table of Contents


Part 1: Get started with Storybook

  1. Learn Basic Concepts: Understand fundamental concepts such as Args, Parameters, Decorators, and Loaders.
  2. Install & Configure Storybook: Set up Storybook for your project and configure it according to your framework.
  3. Navigate Storybook: Familiarize yourself with Storybook's interface, including the Stories Sidebar, Searchbar, and Keyboard shortcuts.
  4. Create Your First Stories: Start building your UI components within Storybook, utilizing Variates and Wrappers.

Part 2: Understand Component Story Format (CSF)

  1. Understand CSF: Learn about Component Story Format, including Args inputs, Play function, and rendering functions.
  2. Extend Your Storybook Styling: Explore advanced styling techniques, theming, and UI behavior customization within Storybook.

Part 3: Component Documentation

  1. Generate Documentation Effortlessly with Autodocs: Automate documentation generation for your components.
  2. Create Rich Interactive Documentation with MDX: Utilize MDX to create rich and interactive documentation for your components.
  3. Use Multiple Doc Blocks: Enhance your component documentation using multiple doc blocks.
  4. Preview, Build, and Publish Your Storybook: Learn how to preview, build, and publish your Storybook on various platforms.
  5. Leverage Storybook Documentation and Community Support: Explore the Storybook documentation and community resources for further support.

Part 4: Test your Components with React Testing Library

  1. Render a Component Using React Testing Library: Learn how to test your components using React Testing Library.
  2. Test UIs Using Multiple Tools: Explore various tools for testing UIs, including Test Runners, Visual tests, Accessibility tests, Interaction tests, Coverage tests, and Snapshot tests.
  3. Integrate Storybook with External Tools: Integrate Storybook with your favorite testing tools such as Vitest, Playwright, and Cypress.

Part 5: Extend Storybook to Test Next.js Pages and Create Component Library

  1. Test Next.js Pages with Storybook: Extend Storybook to test Next.js pages.
  2. Create a Component Library: Learn how to create a reusable component library for enterprise-level projects or startups.

Feel free to navigate to the dedicated chapter folders to access the relevant code examples and resources for each part of the book.

Enjoy building captivating UIs with Storybook and React!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published