You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
@@ -56,17 +74,55 @@ Use the `<TopAppBarFixedAdjust />` component to give your content top-padding, s
56
74
57
75
Prop Name | Type | Description
58
76
--- | --- | ---
59
-
actionItems | Array | Accepts an array of elements that should be rendered to the opposite side of the title. Note that a single action item should also be passed as an array.
60
77
className | String | Classes to be applied to the root element.
61
-
title | String | The title of the Top App Bar.
62
-
navigationIcon | Element | Appears adjacent to the title. This acts as the main action of the Top App Bar.
63
78
short | Boolean | Enables short variant.
64
79
shortCollapsed | Boolean | Enables short collapsed variant.
65
80
prominent | Boolean | Enables prominent variant.
66
81
fixed | Boolean | Enables fixed variant.
67
82
dense | Boolean | Enables dense variant.
83
+
scrollTarget | React.RefObject | Sets scroll target to different DOM node (default is `window`)
84
+
tag | String | Customizes the `TopAppBar` HTML tag. (default: `<header>`)
85
+
> NOTES: As per design guidelines, prominent and dense variants should not be used with short or short collapsed. Additionally, dense variants should only be used on desktop. Additionally short top-app-bars should be used with no more than 1 action item.
86
+
87
+
#### Deprecated TopAppBar Props
88
+
89
+
The following props are deprecated since v0.11.0 and are scheduled for removal in v0.13.0.
90
+
They will still render as expected until v0.13.0, but will output a warning to the console.
91
+
92
+
Prop Name | Type | Description
93
+
--- | --- | ---
94
+
actionItems | Array | Accepts an array of elements that should be rendered to the opposite side of the title. Note that a single action item should also be passed as an array.
95
+
navigationIcon | Element | Appears adjacent to the title. This acts as the main action of the Top App Bar.
96
+
title | String | The Title of the Top App Bar.
97
+
98
+
### TopAppBarRow
99
+
Prop Name | Type | Description
100
+
--- | --- | ---
101
+
className | String | Classes to be applied to the root element.
102
+
tag | String | Customizes the `TopAppBarRow` tag. (default: `<div>`)
103
+
104
+
### TopAppBarSection
105
+
Prop Name | Type | Description
106
+
--- | --- | ---
107
+
align | Sring ('start' or 'end') | optional property tha aligns section content to either start or end of section
108
+
className | String | Classes to be applied to the root element.
109
+
tag | String | Customizes the `TopAppBarSection` tag. (default: `<section>`)
110
+
> Note: if section contains action items it is reccomended to add property role='toolbar' for a11y purposes
111
+
112
+
### TopAppBarTitle
113
+
Prop Name | Type | Description
114
+
--- | --- | ---
115
+
className | String | Classes to be applied to the root element.
116
+
tag | String | Customizes the `TopAppBarTitle` tag. (default: `<span>`)
68
117
69
-
> NOTES: As per design guidelines, prominent and dense variants should not be used with short or short collapsed. Additionally, dense variants should only be used on desktop.
118
+
### TopAppBarIcon
119
+
Prop Name | Type | Description
120
+
--- | --- | ---
121
+
className | String | Classes to be applied to the root element.
122
+
actionItem | Boolean | applies action-item class to icon
123
+
navIcon | Boolean | applies nav-icon class to icon
124
+
children | React.ReactElement<any> | can be any icon. Material Icons are reccomended
125
+
> Notes: (1) consider adding `aria-label` to actionItem's. (2) you may need to manually add ripple or tabindex to icon. (3) Short top-app-bars shold be used with no more than 1 action item.
70
126
71
127
### TopAppBarFixedAdjust
72
128
@@ -89,8 +145,9 @@ Use of [Material Icon's](../material-icon/README.md) for Action Items and Naviga
89
145
The navigation icon can be a `<a>`, `<i>`, `<svg>`, `<image>`, `<span>`, etc., but again must be wrapped with the `withRipple HOC`.
If you decide to use a React Component please see [Integrating with Components](./../../docs/guidelines.md#integrating-with-components).
@@ -100,13 +157,13 @@ If you decide to use a React Component please see [Integrating with Components](
100
157
Similar to the [navigation icon](#navigation-icon), it can be `<a>`, `<i>`, `<svg>`, `<image>`, `<span>`, etc., and must be wrapped with the `withRipple HOC`.
0 commit comments