summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/links/link.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/links/link.stories.tsx')
-rw-r--r--src/components/atoms/links/link.stories.tsx20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/components/atoms/links/link.stories.tsx b/src/components/atoms/links/link.stories.tsx
index c3b3465..420eafe 100644
--- a/src/components/atoms/links/link.stories.tsx
+++ b/src/components/atoms/links/link.stories.tsx
@@ -31,14 +31,29 @@ export default {
required: false,
},
},
- external: {
+ download: {
control: {
type: 'boolean',
},
+ description: 'Determine if the link purpose is to download a file.',
table: {
category: 'Options',
+ defaultValue: { summary: false },
+ },
+ type: {
+ name: 'boolean',
+ required: false,
+ },
+ },
+ external: {
+ control: {
+ type: 'boolean',
},
description: 'Determine if the link is external of the current website.',
+ table: {
+ category: 'Options',
+ defaultValue: { summary: false },
+ },
type: {
name: 'boolean',
required: false,
@@ -79,6 +94,7 @@ export const Default = Template.bind({});
Default.args = {
children: 'A link',
href: '#',
+ download: false,
external: false,
};
@@ -89,6 +105,7 @@ export const External = Template.bind({});
External.args = {
children: 'A link',
href: '#',
+ download: false,
external: true,
};
@@ -99,6 +116,7 @@ export const ExternalWithLang = Template.bind({});
ExternalWithLang.args = {
children: 'A link',
href: '#',
+ download: false,
external: true,
lang: 'en',
};