mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-03-04 11:15:47 +03:00
33 lines
620 B
JavaScript
33 lines
620 B
JavaScript
|
import React from 'react';
|
||
|
import styled from 'styled-components';
|
||
|
import Notification from './';
|
||
|
|
||
|
const Container = styled.div`
|
||
|
display: flex;
|
||
|
height: 100%;
|
||
|
width: 100%;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
`;
|
||
|
|
||
|
export default {
|
||
|
title: 'Notification',
|
||
|
component: Notification,
|
||
|
};
|
||
|
|
||
|
const Template = (args) => (
|
||
|
<Container>
|
||
|
<Notification {...args} />
|
||
|
</Container>
|
||
|
);
|
||
|
|
||
|
export const Default = Template.bind({});
|
||
|
Default.args = {
|
||
|
type: 'warning',
|
||
|
children: 'Hello Notification',
|
||
|
};
|
||
|
Default.argTypes = {
|
||
|
onClose: { control: { disable: true } },
|
||
|
theme: { control: { disable: true } },
|
||
|
};
|