Remove WebView UI Toolkit stories
This commit is contained in:
@@ -29,12 +29,7 @@ export const parameters = {
|
||||
value: '#1e1e1e',
|
||||
},
|
||||
],
|
||||
},
|
||||
options: {
|
||||
storySort: {
|
||||
order: ['WebView UI Toolkit', 'MRVA'],
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
window.acquireVsCodeApi = () => ({
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
@@ -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/).
|
||||
Reference in New Issue
Block a user