Skip to content

The aim of this extension is to help developers with the creation of storybook stories by generating the boilerplate code for them and save them some time.

Notifications You must be signed in to change notification settings

Maminasouleymane/angular-storybook-boilerplate-snippet

Repository files navigation

Angular Storybook Boilerplate Snippet

Introduction

The Angular Storybook Boilerplate Snippet extension aims to streamline the process of creating Storybook stories for Angular components by generating the necessary boilerplate code. This saves developers valuable time during the development process.

Installation

To install this extension, follow these steps:

  1. Launch Visual Studio Code.
  2. Open the Command Palette using Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac).
  3. Type "Extensions" in the Command Palette search bar.
  4. Select "Extensions: Install Extensions" from the dropdown.
  5. Search for "Angular Storybook Boilerplate Snippet" and click the "Install" button.

Usage

This extension provides a single snippet that generates the required boilerplate code for creating a Storybook story for an Angular component. To use it:

  1. Open a file for your Angular component.
  2. Trigger the snippet by typing sbac.
  3. You'll have the option to enter your component's name (assuming it resides in the same folder as your story).
  4. Press TAB to move to the story title input.

Extension Demo

Snippet Trigger

Trigger Content
sbac Template for Storybook Story

Compatibility

This extension is designed to work with Storybook version 7.*. Please note that syntax may differ for older versions.

Contributing

Contributions to this extension are welcome! If you'd like to report issues, suggest improvements, or contribute code, please visit the GitHub repository for more information.

License

This extension is licensed under the MIT License.

Visual Studio Code

For more information about Visual Studio Code, visit the official website.

About

The aim of this extension is to help developers with the creation of storybook stories by generating the boilerplate code for them and save them some time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published