mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-02 20:44:42 +00:00
22 lines
486 B
TypeScript
22 lines
486 B
TypeScript
import React from 'react';
|
|
import { Story, Meta } from '@storybook/react';
|
|
import { Message, MessageProps } from './Message';
|
|
|
|
export default {
|
|
title: 'Library/Message',
|
|
component: Message,
|
|
} as Meta;
|
|
|
|
const Template: Story<MessageProps> = (args) => (
|
|
<div>
|
|
<Message {...args} />
|
|
<p>This is some text.</p>
|
|
</div>
|
|
);
|
|
|
|
export const DefaultMessage = Template.bind({});
|
|
DefaultMessage.args = {
|
|
type: 'loading',
|
|
content: 'Sample message contents',
|
|
};
|