Remove WebView UI Toolkit stories

This commit is contained in:
Koen Vlaswinkel
2022-09-07 16:37:37 +02:00
parent d15e3885d7
commit baf130d60e
3 changed files with 1 additions and 57 deletions

View File

@@ -29,12 +29,7 @@ export const parameters = {
value: '#1e1e1e',
},
],
},
options: {
storySort: {
order: ['WebView UI Toolkit', 'MRVA'],
},
},
}
};
window.acquireVsCodeApi = () => ({

View File

@@ -1,42 +0,0 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { VSCodeButton } from '@vscode/webview-ui-toolkit/react';
export default {
title: 'WebView UI Toolkit/Button',
component: VSCodeButton,
argTypes: {
children: { control: 'text' },
appearance: {
control: {
type: 'select',
options: ['primary', 'secondary', 'icon'],
},
},
onClick: {
action: 'clicked',
table: {
disable: true,
},
},
},
} as ComponentMeta<typeof VSCodeButton>;
const Template: ComponentStory<typeof VSCodeButton> = (args) => (
<VSCodeButton {...args} />
);
export const Default: any = Template.bind({});
Default.args = {
children: 'Button',
onClick: action('button-clicked'),
};
export const Secondary = Template.bind({});
Secondary.args = {
...Default.args,
appearance: 'secondary',
};

View File

@@ -1,9 +0,0 @@
<!-- Checkbox.stories.mdx -->
import { Canvas, Meta, Story } from "@storybook/addon-docs";
<Meta title="WebView UI Toolkit/Overview" />
The stories in this directory are examples of how to use the [WebView UI Toolkit](https://github.com/microsoft/vscode-webview-ui-toolkit).
They are not meant to be used as a reference for the WebView UI Toolkit. For a full reference and Storybook documentation,
please see the [WebView UI Toolkit Storybook](https://microsoft.github.io/vscode-webview-ui-toolkit/).