Status/Status.stories.tsx

devopness · packages/ui/react/src/components/Primitives/Status/Status.stories.tsx · typescript · Apache-2.0
ui

Status.stories.tsx from devopness/devopness

// Source: https://github.com/devopness/devopness | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { Meta, StoryObj } from '@storybook/react-vite'

import { Status } from './Status'
import { ActionStatus } from 'src/constants'

const meta: Meta<typeof Status> = {
  title: 'Primitives/Status',
  component: Status,
  tags: ['autodocs'],
  argTypes: {
    status: { control: 'select', options: Object.values(ActionStatus) },
    statusHumanReadable: { control: 'text' },
    statusReasonHumanReadable: { control: 'text' },
  },
}

type Story = StoryObj<typeof Status>

const Default: Story = {
  args: {
    status: 'completed',
    statusHumanReadable: 'Completed',
    statusRe

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key