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
|`alwaysOn`| Optional |`boolean`| - | When true, the app bar is always visible |
68
67
|`children`| Optional |`ReactElement`| - | What to display in the central part of the app bar |
69
68
|`color`| Optional |`string`| - | The background color of the app bar |
70
69
|`sx`| Optional |`SxProps`| - | Style overrides, powered by MUI System |
@@ -73,17 +72,6 @@ const App = () => (
73
72
74
73
Additional props are passed to [the underlying MUI `<AppBar>` element](https://mui.com/material-ui/api/app-bar/).
75
74
76
-
## `alwaysOn`
77
-
78
-
By default, the app bar is hidden when the user scrolls down the page. This is useful to save space on small screens. But if you want to keep the app bar always visible, you can set the `alwaysOn` prop to `true`.
79
-
80
-
```jsx
81
-
// in src/MyAppBar.js
82
-
import { AppBar } from'react-admin';
83
-
84
-
constMyAppBar= () =><AppBar alwaysOn />;
85
-
```
86
-
87
75
## `children`
88
76
89
77
The `<AppBar>` component accepts a `children` prop, which is displayed in the central part of the app bar. This is useful to add buttons to the app bar, for instance, a light/dark theme switcher.
Check out the [`<AppBar>` documentation](./AppBar.md) for more information, and for instructions on building your own AppBar.
117
118
119
+
## `appBarAlwaysOn`
120
+
121
+
By default, the app bar is hidden when the user scrolls down the page. This is useful to save space on small screens. But if you want to keep the app bar always visible, you can set the `appBarAlwaysOn` prop to `true`.
0 commit comments