summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/image-widget.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/widgets/image-widget.stories.tsx')
-rw-r--r--src/components/organisms/widgets/image-widget.stories.tsx25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/components/organisms/widgets/image-widget.stories.tsx b/src/components/organisms/widgets/image-widget.stories.tsx
index 27871ae..3014b36 100644
--- a/src/components/organisms/widgets/image-widget.stories.tsx
+++ b/src/components/organisms/widgets/image-widget.stories.tsx
@@ -50,7 +50,7 @@ export default {
required: true,
},
},
- img: {
+ image: {
description: 'An image object.',
type: {
name: 'object',
@@ -58,6 +58,19 @@ export default {
value: {},
},
},
+ imageClassName: {
+ control: {
+ type: 'text',
+ },
+ description: 'Set additional classnames to the image wrapper.',
+ table: {
+ category: 'Styles',
+ },
+ type: {
+ name: 'string',
+ required: false,
+ },
+ },
level: {
control: {
type: 'number',
@@ -107,7 +120,7 @@ const Template: ComponentStory<typeof ImageWidget> = (args) => (
<ImageWidget {...args} />
);
-const img = {
+const image = {
alt: 'Et perferendis quaerat',
height: 480,
src: 'http://placeimg.com/640/480/nature',
@@ -122,7 +135,7 @@ export const AlignLeft = Template.bind({});
AlignLeft.args = {
alignment: 'left',
expanded: true,
- img,
+ image,
level: 2,
title: 'Quo et totam',
};
@@ -134,7 +147,7 @@ export const AlignCenter = Template.bind({});
AlignCenter.args = {
alignment: 'center',
expanded: true,
- img,
+ image,
level: 2,
title: 'Quo et totam',
};
@@ -146,7 +159,7 @@ export const AlignRight = Template.bind({});
AlignRight.args = {
alignment: 'right',
expanded: true,
- img,
+ image,
level: 2,
title: 'Quo et totam',
};
@@ -158,7 +171,7 @@ export const WithDescription = Template.bind({});
WithDescription.args = {
description: 'Sint enim harum',
expanded: true,
- img,
+ image,
level: 2,
title: 'Quo et totam',
};