Integration of Varbase with Storybook
Prerequisites
Installing Varbase locally with DDEVInitialize Storybook for DDEV
1. Initialize Storybook for Varbase
ddev init-storybook2. Generate Stories
3. Start Varbase Storybook in DDEV
4. Verify Installation
How Storybook Connects to Drupal
.storybook/middleware.js
.storybook/middleware.js.storybook/preview.ts fetchStoryHtml
.storybook/preview.ts fetchStoryHtmlWhen Adding or Changing Stories
Manual Setup (Without DDEV Commands)
Enable the Storybook Module
Grant Permissions
Configure Development Services
Include the Development Services File
Install Dependencies and Start
Customizing Varbase Storybook for a Project
Switching Between Themes
Show Vartheme BS5 Components
Show Custom Theme Components
Creating Your Own ThemeShow Custom Module Components
Bootstrap Color Modes
Storybook Build
Run Varbase Storybook on UPSUN
Select the Varbase Template
Use Development Services
Last updated