redux-devtools/packages/redux-devtools-ui/src/Button/Button.stories.tsx
Nathan Bierema 61632768a7
Replace styled-components with Emotion (#1883)
* Replace styled-components with Emotion in ui

* react-dock

* Remainder

* Fix

* Format

* Update snapshots

* Create bright-sheep-joke.md
2025-06-01 13:59:13 +00:00

64 lines
1.4 KiB
TypeScript

import React from 'react';
import styled from '@emotion/styled';
import { MdFiberManualRecord } from 'react-icons/md';
import { Meta, StoryObj } from '@storybook/react-vite';
import Button from './';
const meta: Meta = {
title: 'Button',
component: Button,
};
export default meta;
const Container = styled.div`
display: flex;
height: 100%;
width: 100%;
justify-content: center;
align-items: center;
`;
type Story = StoryObj<typeof Button>;
export const Default: Story = {
render: (args) => (
<Container>
<Button {...args} />
</Container>
),
args: {
title: 'Hello Tooltip! \\a And from new line hello!',
tooltipPosition: 'top',
primary: true,
size: 'normal',
disabled: false,
children: 'Hello Button',
},
argTypes: {
onClick: { control: { disable: true } },
type: { control: { disable: true } },
mark: { control: { disable: true } },
theme: { control: { disable: true } },
},
};
export const Mark: Story = {
render: Default.render,
args: {
mark: 'base08',
title: 'Hello Tooltip',
tooltipPosition: 'top',
size: 'normal',
disabled: false,
children: <MdFiberManualRecord />,
},
argTypes: {
children: { control: { disable: true } },
onClick: { control: { disable: true } },
type: { control: { disable: true } },
primary: { control: { disable: true } },
theme: { control: { disable: true } },
},
};