Skip to content

Commit 4b063c7

Browse files
committed
docs: standardize boolean values and add parameters for Linkbutton component
1 parent 93d6204 commit 4b063c7

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

src/components/dashedlines/Dashedlines.das.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ export default {
33
file: './Dashedlines.svelte',
44
description: '',
55
examples: [
6-
{ title: 'Dashed line 1', input: { dashedlines1: 'true' } },
7-
{ title: 'Dashed line 2', input: { dashedlines2: 'true' } },
8-
{ title: 'Dashed line 3', input: { dashedlines3: 'true' } },
9-
{ title: 'Dashed line 4', input: { dashedlines4: 'true' } },
10-
{ title: 'Dashed line 5', input: { dashedlines5: 'true' } },
11-
{ title: 'Dashed line 6', input: { dashedlines6: 'true' } },
12-
{ title: 'Dashed line 7', input: { dashedlines7: 'true' } },
6+
{ title: 'Dashed line 1', input: { dashedlines1: true } },
7+
{ title: 'Dashed line 2', input: { dashedlines2: true } },
8+
{ title: 'Dashed line 3', input: { dashedlines3: true } },
9+
{ title: 'Dashed line 4', input: { dashedlines4: true } },
10+
{ title: 'Dashed line 5', input: { dashedlines5: true } },
11+
{ title: 'Dashed line 6', input: { dashedlines6: true } },
12+
{ title: 'Dashed line 7', input: { dashedlines7: true } },
1313
],
1414
}

src/components/header/Linkbutton.das.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,29 @@ export default {
2727
},
2828
},
2929
],
30+
31+
params: [
32+
{
33+
name: 'btnlabel',
34+
type: 'string',
35+
label: 'Button label',
36+
},
37+
{
38+
name: 'link',
39+
type: 'string',
40+
label: 'Link',
41+
},
42+
{
43+
name: 'bgColor',
44+
type: 'string',
45+
control: 'select',
46+
label: 'Background Color',
47+
options: ['turquoise', 'no background'],
48+
},
49+
{
50+
name: 'isExternal',
51+
type: 'boolean',
52+
label: 'Is External',
53+
},
54+
],
3055
}

src/components/header/Navbar.das.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default {
44
description: './Navbar.md',
55
examples: [
66
{ title: 'Navbar homepage' },
7-
{ title: 'Navbar subpages & docs', input: { isFixed: 'true' } },
7+
{ title: 'Navbar subpages & docs', input: { isFixed: true } },
88
],
99
}

0 commit comments

Comments
 (0)