- Mantine theme with component extensions (Badge, Card, Paper, Button, etc.) - CSS custom properties for design tokens (--inspector-* vars) - Dark/light mode support with auto detection - 12 atoms: StatusIndicator, AnnotationBadge, CapabilityItem, LogEntry, ProgressDisplay, ContentViewer, ListChangedIndicator, CopyButton, ConnectionToggle, TransportBadge, InlineError, MessageBubble - 25 molecules: ServerCard, AddServerMenu, SchemaForm, ToolListItem, ToolDetailPanel, ResultPanel, ResourceListItem, ResourcePreviewPanel, ResourceTemplateInput, PromptArgumentsForm, PromptMessagesDisplay, LogControls, TaskCard, HistoryEntry, ServerInfoContent, ServerSettingsForm, RootsTable, SamplingRequestPanel, ElicitationFormPanel, ElicitationUrlPanel, InlineSamplingRequest, InlineElicitationRequest, PendingClientRequests, ImportServerJsonPanel, ExperimentalFeaturesPanel - Exclude storybook-static from version control - Exclude .stories.tsx from app tsconfig (Storybook-only modules) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 lines
895 B
TypeScript
52 lines
895 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
import { AnnotationBadge } from './AnnotationBadge'
|
|
|
|
const meta: Meta<typeof AnnotationBadge> = {
|
|
title: 'Atoms/AnnotationBadge',
|
|
component: AnnotationBadge,
|
|
}
|
|
|
|
export default meta
|
|
type Story = StoryObj<typeof AnnotationBadge>
|
|
|
|
export const Audience: Story = {
|
|
args: {
|
|
label: 'user',
|
|
variant: 'audience',
|
|
},
|
|
}
|
|
|
|
export const ReadOnly: Story = {
|
|
args: {
|
|
label: 'read-only',
|
|
variant: 'readOnly',
|
|
},
|
|
}
|
|
|
|
export const Destructive: Story = {
|
|
args: {
|
|
label: 'destructive',
|
|
variant: 'destructive',
|
|
},
|
|
}
|
|
|
|
export const LongRun: Story = {
|
|
args: {
|
|
label: 'long-run',
|
|
variant: 'longRun',
|
|
},
|
|
}
|
|
|
|
export const PriorityHigh: Story = {
|
|
args: {
|
|
label: 'priority: high',
|
|
variant: 'priority',
|
|
},
|
|
}
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
label: 'custom',
|
|
variant: 'default',
|
|
},
|
|
}
|