// // Copyright 2022 DXOS.org // import { type Meta, type StoryObj } from '@storybook/react-vite'; import React from 'react'; import { hues } from '@dxos/ui-theme'; import { type ChromaticPalette, type MessageValence } from '@dxos/ui-types'; import { withLayout, withTheme } from '../../testing'; import { Tag } from './Tag'; const palettes = ['neutral', 'success', 'info', 'warning', 'error', ...hues] as (ChromaticPalette | MessageValence)[]; const meta = { title: 'ui/react-ui-core/components/Tag', component: Tag, render: () => (
{palettes.map((palette) => ( {palette} ))}
), decorators: [withTheme(), withLayout({ layout: 'default' })], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = {};