Skip to content

Commit 6a65a3b

Browse files
authored
Merge pull request #51 from Scouterna/bottom-bar-prop-descriptions
document bottom bar props
2 parents ea3d31a + 0d788ef commit 6a65a3b

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
33
"changelog": "@changesets/cli/changelog",
4-
"commit": false,
4+
"commit": true,
55
"fixed": [["@scouterna/ui-*"]],
66
"linked": [],
77
"access": "restricted",

.changeset/fair-wolves-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scouterna/ui-webc": patch
3+
---
4+
5+
Added prop descriptions for bottom bar item.

packages/ui-webc/src/components/bottom-bar-item/bottom-bar-item.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,31 @@ export type ItemType = "button" | "link";
1313
shadow: true,
1414
})
1515
export class ScoutBottomBarItem {
16+
/**
17+
* The type of the bottom bar item, either a button or a link.
18+
*/
1619
@Prop() type: ItemType = "button";
20+
21+
/**
22+
* An optional link to navigate to when the item is clicked. Only used when
23+
* `type` is set to "link".
24+
*/
1725
@Prop() href?: string;
1826

27+
/**
28+
* An icon to display above the label. Must be an SVG string.
29+
*/
1930
@Prop() icon!: string;
31+
32+
/**
33+
* The label to display below the icon.
34+
*/
2035
@Prop() label!: string;
36+
37+
/**
38+
* Whether the item is currently active. Should be set to true when the item
39+
* represents the current page.
40+
*/
2141
@Prop() active?: boolean;
2242

2343
@Event()

0 commit comments

Comments
 (0)