aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/sharing.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-10 17:38:07 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-13 15:46:01 +0200
commit9c8921db92d16b07ffc2a63ff3c80c4dcdd9ff9d (patch)
tree52e87fa8e758ec51cfbf7aa200982e0a6f5ab1ca /src/components/organisms/widgets/sharing.stories.tsx
parent0d59a6d2995b4119865271ed1908ede0bb96497c (diff)
chore: add Project single pages
Diffstat (limited to 'src/components/organisms/widgets/sharing.stories.tsx')
-rw-r--r--src/components/organisms/widgets/sharing.stories.tsx25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/components/organisms/widgets/sharing.stories.tsx b/src/components/organisms/widgets/sharing.stories.tsx
index c3c3488..47213b6 100644
--- a/src/components/organisms/widgets/sharing.stories.tsx
+++ b/src/components/organisms/widgets/sharing.stories.tsx
@@ -22,9 +22,13 @@ export default {
type: null,
},
description: 'Default widget state (expanded or collapsed).',
+ table: {
+ category: 'Options',
+ defaultValue: { summary: true },
+ },
type: {
name: 'boolean',
- required: true,
+ required: false,
},
},
level: {
@@ -34,9 +38,13 @@ export default {
max: 6,
},
description: 'The heading level.',
+ table: {
+ category: 'Options',
+ defaultValue: { summary: 2 },
+ },
type: {
name: 'number',
- required: true,
+ required: false,
},
},
media: {
@@ -49,16 +57,6 @@ export default {
required: true,
},
},
- title: {
- control: {
- type: 'text',
- },
- description: 'The widget title.',
- type: {
- name: 'string',
- required: true,
- },
- },
},
decorators: [
(Story) => (
@@ -78,14 +76,11 @@ const Template: ComponentStory<typeof SharingWidget> = (args) => (
*/
export const Sharing = Template.bind({});
Sharing.args = {
- expanded: true,
data: {
excerpt:
'Alias similique eius ducimus laudantium aspernatur. Est rem ut eum temporibus sit reprehenderit aut non molestias. Vel dolorem expedita labore quo inventore aliquid nihil nam. Possimus nobis enim quas corporis eos.',
title: 'Accusantium totam nostrum',
url: 'https://www.example.test',
},
- level: 2,
media: ['diaspora', 'facebook', 'linkedin', 'twitter', 'email'],
- title: 'Sharing',
};