//
// Copyright 2026 DXOS.org
//
import { type Meta, type StoryObj } from '@storybook/react-vite';
import React from 'react';
import { type ChromaticPalette } from '@dxos/ui-types';
import { withLayout, withTheme } from '../../testing';
import { Flex } from './Flex';
const Cell = ({ label, hue }: { label: string; hue: ChromaticPalette }) => (
{label}
);
const RowStory = () => (
|
|
|
);
const ColumnStory = () => (
|
|
|
);
const GrowStory = () => (
|
|
|
);
const meta: Meta = {
title: 'ui/react-ui-core/primitives/Flex',
decorators: [withTheme(), withLayout({ layout: 'column' })],
parameters: { layout: 'fullscreen' },
};
export default meta;
type Story = StoryObj;
export const Row: Story = { render: RowStory };
export const Column: Story = { render: ColumnStory };
export const Grow: Story = { render: GrowStory };