// // Copyright 2022 DXOS.org // import { type Meta, type StoryObj } from '@storybook/react-vite'; import React, { useState } from 'react'; import { Icon, Input, Select, Toggle, Toolbar } from '../components'; import { withLayoutVariants, withTheme } from '../testing'; const DefaultStory = () => { const [checked, setChecked] = useState(false); const [select, setSelect] = useState(); return (
{/* TODO(burdon): Should be fixed width (regardless of selection). */} A B C setChecked(!!value)} /> Checkbox Test
); }; const meta = { title: 'ui/react-ui-core/playground/Controls', render: DefaultStory, decorators: [withTheme(), withLayoutVariants()], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = {};