mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Added some testcases
This commit is contained in:
parent
4a9fc915d1
commit
2c4c25d692
@ -7,15 +7,24 @@ export default {
|
||||
parameters: { chromatic: { disable: true } },
|
||||
};
|
||||
|
||||
/**
|
||||
* A basic button
|
||||
*/
|
||||
export const Basic = {
|
||||
args: { label: 'Basic' },
|
||||
};
|
||||
|
||||
/**
|
||||
* Won't show up in DocsPage
|
||||
*/
|
||||
export const Disabled = {
|
||||
args: { label: 'Disabled in DocsPage' },
|
||||
parameters: { docs: { disable: true } },
|
||||
};
|
||||
|
||||
/**
|
||||
* Another button, just to show multiple stories
|
||||
*/
|
||||
export const Another = {
|
||||
args: { label: 'Another' },
|
||||
};
|
||||
|
@ -4,6 +4,7 @@ import { BooleanControl } from './Boolean';
|
||||
export default {
|
||||
title: 'Controls/Boolean',
|
||||
component: BooleanControl,
|
||||
tags: ['docsPage'],
|
||||
};
|
||||
|
||||
const Template = (initialValue?: boolean) => {
|
||||
@ -20,4 +21,7 @@ export const True = () => Template(true);
|
||||
|
||||
export const False = () => Template(false);
|
||||
|
||||
/**
|
||||
* When no value is set on the control
|
||||
*/
|
||||
export const Undefined = () => Template(undefined);
|
||||
|
@ -2119,7 +2119,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/template@npm:^7.12.11, @babel/template@npm:^7.16.7, @babel/template@npm:^7.18.10, @babel/template@npm:^7.3.3, @babel/template@npm:^7.4.0, @babel/template@npm:^7.7.0, @babel/template@npm:^7.8.6":
|
||||
"@babel/template@npm:^7.16.7, @babel/template@npm:^7.18.10, @babel/template@npm:^7.3.3, @babel/template@npm:^7.4.0, @babel/template@npm:^7.7.0, @babel/template@npm:^7.8.6":
|
||||
version: 7.18.10
|
||||
resolution: "@babel/template@npm:7.18.10"
|
||||
dependencies:
|
||||
@ -6644,7 +6644,6 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/generator": ^7.12.11
|
||||
"@babel/parser": ^7.12.11
|
||||
"@babel/template": ^7.12.11
|
||||
"@babel/traverse": ^7.12.11
|
||||
"@babel/types": ^7.12.11
|
||||
"@storybook/csf": next
|
||||
|
Loading…
x
Reference in New Issue
Block a user