// // Copyright 2022 DXOS.org // import '@dxos-theme'; import { type StoryObj, type Meta } from '@storybook/react'; import React from 'react'; import { Button, IconButton, type ButtonProps, Tooltip } from '../components'; import { withTheme } from '../testing'; // TODO(burdon): Change density to 3 or 4 sizes: (large, medium, small; or 22, 28, 32, 40) // TODO(burdon): IconButton should be square if no text. // TODO(burdon): IconButton icon should be auto-sized based on density. // TODO(burdon): Remove custom padding from all Buttons. // TODO(burdon): Forms w/ labels. // TODO(burdon): Card preview with sections. const DefaultStory = ({ children, ...args }: Omit) => { return (
{/* Large */}
{/* Medium */}
{/* Small */}
{/* 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: Meta = { title: 'ui/react-ui-core/Playground/Custom', component: Button, render: DefaultStory, decorators: [withTheme], parameters: { layout: 'centered' }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: 'Test' }, };