Webpack 4-based builder for Storybook that provides framework-agnostic build engine for preview iframe compilation and bundling.
91
Create a Storybook story file for a customizable Button component that demonstrates dynamic argument handling and control generation.
Your story should showcase a button component with multiple configurable properties:
The story file should:
@generates
Provides the core Storybook framework for building UI component stories.
Provides React integration for Storybook stories.
Provides action logging for event handlers.
For testing purposes, assume the following Button component exists:
interface ButtonProps {
label: string;
variant?: 'primary' | 'secondary' | 'danger';
size?: 'small' | 'medium' | 'large';
disabled?: boolean;
onClick?: () => void;
}
export const Button: React.FC<ButtonProps>;Install with Tessl CLI
npx tessl i tessl/npm-storybook--builder-webpack4evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10