Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/stories/blocks/ImageBlock.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// .storybook/ImageBlock.stories.ts
import type { Meta, StoryObj } from '@storybook/react';
import { ImageBlock } from '@vibing-ai/block-kit';

Expand All @@ -12,11 +13,12 @@ const meta: Meta<typeof ImageBlock> = {
width: { control: 'text' },
height: { control: 'text' },
rounded: { control: 'boolean' },
loading: { control: 'radio', options: ['eager', 'lazy'] },
loading: { control: { type: 'radio' }, options: ['eager', 'lazy'] },
},
};

export default meta;

type Story = StoryObj<typeof ImageBlock>;

export const Basic: Story = {
Expand All @@ -43,4 +45,4 @@ export const Rounded: Story = {
alt: 'Example image with rounded corners',
rounded: true,
},
};
};