owncast/web/stories/Modal.stories.tsx

23 lines
602 B
TypeScript
Raw Normal View History

2022-04-18 03:50:39 +02:00
import React, { useState } from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { Modal, Button } from 'antd';
const Usage = () => (
<Modal title="Basic Modal" visible>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</Modal>
);
2022-04-18 03:50:39 +02:00
export default {
title: 'owncast/Modal container',
2022-04-18 03:50:39 +02:00
component: Modal,
parameters: {},
} as ComponentMeta<typeof Modal>;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const Template: ComponentStory<typeof Modal> = args => <Usage />;
export const Example = Template.bind({});