veza/apps/web/src/components/ui/AvatarUpload.stories.tsx
senke 2c9c39a8a1 feat(storybook): complete UI component coverage (batches 6-9)
- Batch 6: FAB, FormField, FloatingInput, AvatarUpload
- Batch 7: Modal, ConfirmationDialog, ImageViewerModal, ErrorDisplay, LoadingState
- Batch 8: DataList, WaveformVisualizer, OptimizedImage, VirtualizedList
- Batch 9: ImageCropper, LoadingSpinner, FocusTrap
- Achieved total coverage for src/components/ui
2026-02-02 19:50:45 +01:00

41 lines
824 B
TypeScript

import type { Meta, StoryObj } from '@storybook/react';
import { AvatarUpload } from './avatar-upload';
const meta = {
title: 'UI/AvatarUpload',
component: AvatarUpload,
tags: ['autodocs'],
argTypes: {
size: {
control: 'select',
options: ['sm', 'md', 'lg', 'xl'],
},
disabled: { control: 'boolean' },
},
args: {
userId: '123',
}
} satisfies Meta<typeof AvatarUpload>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const WithExistingAvatar: Story = {
args: {
currentAvatarUrl: 'https://github.com/shadcn.png',
},
};
export const Disabled: Story = {
args: {
disabled: true,
},
};
export const Large: Story = {
args: {
size: 'xl',
},
};