// // Copyright 2022 DXOS.org // import { type Meta, type StoryObj } from '@storybook/react-vite'; import React from 'react'; import { Button, type ButtonProps, IconButton, Tooltip } from '../components'; import { withTheme } from '../testing'; const DefaultStory = ({ children, ...args }: Omit) => { return (
{/* Large (40px) */}
{/* Medium (32px, default) */}
{/* Small (28px) */}
{/* TODO(burdon): Full variant with max width. */}
{/* TODO(burdon): Option to have button on RHS. Default size for icon should be 5 for this (medium) density. */}
); }; const meta = { title: 'ui/react-ui-core/playground/Custom', component: Button, render: DefaultStory, decorators: [withTheme()], parameters: { layout: 'centered', }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: 'Test' }, };