File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
packages/ui-webc/src/components/bottom-bar-item Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1+ ---
2+ " @scouterna/ui-webc " : patch
3+ ---
4+
5+ Added prop descriptions for bottom bar item.
Original file line number Diff line number Diff line change @@ -13,11 +13,31 @@ export type ItemType = "button" | "link";
1313 shadow : true ,
1414} )
1515export 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 ( )
You can’t perform that action at this time.
0 commit comments