Extract TaskStatusBadge element with dark/light text color handling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c494d2feb4
commit
a1c894f72f
1 changed files with 43 additions and 10 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { TaskStatusBadge } from "./TaskStatusBadge";
|
||||
|
||||
const meta: Meta<typeof TaskStatusBadge> = {
|
||||
title: "Elements/TaskStatusBadge",
|
||||
component: TaskStatusBadge,
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof TaskStatusBadge>;
|
||||
|
||||
export const Waiting: Story = { args: { status: "waiting" } };
|
||||
export const Running: Story = { args: { status: "running" } };
|
||||
export const Completed: Story = { args: { status: "completed" } };
|
||||
export const Failed: Story = { args: { status: "failed" } };
|
||||
export const Cancelled: Story = { args: { status: "cancelled" } };
|
||||
Loading…
Reference in a new issue