Last active
July 23, 2024 11:52
-
-
Save konstantindenerz/c4a7160ab4aff4605e18f116a3214fb4 to your computer and use it in GitHub Desktop.
A WebStorm live template to generate a Storybook's stories file for a specific Angular component. Component Story Format V2
This file contains 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
import {Meta, moduleMetadata, StoryObj} from '@storybook/angular'; | |
import {$ComponentName$Component} from './$componentName$.component'; | |
const meta: Meta<$ComponentName$Component> = { | |
title: '$StoryName$', | |
component: $ComponentName$Component, | |
}; | |
export default meta; | |
type Story = StoryObj<$ComponentName$Component>; | |
export const Default: Story = { | |
args: {$END$} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to add live template: https://www.jetbrains.com/help/webstorm/creating-and-editing-live-templates.html
The template above requires this list of variables:
Edit Template Variables