1 | import { PropTypes, StandardProps } from '..';
|
2 | import { PaperProps } from '../Paper';
|
3 |
|
4 | export interface AppBarProps extends StandardProps<PaperProps, AppBarClassKey> {
|
5 | /**
|
6 | * The color of the component. It supports those theme colors that make sense for this component.
|
7 | */
|
8 | color?: PropTypes.Color | 'transparent';
|
9 | /**
|
10 | * The positioning type. The behavior of the different options is described
|
11 | * [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
12 | * Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
13 | */
|
14 | position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
15 | }
|
16 |
|
17 | export type AppBarClassKey =
|
18 | | 'root'
|
19 | | 'positionFixed'
|
20 | | 'positionAbsolute'
|
21 | | 'positionSticky'
|
22 | | 'positionStatic'
|
23 | | 'positionRelative'
|
24 | | 'colorDefault'
|
25 | | 'colorPrimary'
|
26 | | 'colorSecondary';
|
27 |
|
28 | /**
|
29 | *
|
30 | * Demos:
|
31 | *
|
32 | * - [App Bar](https://mui.com/components/app-bar/)
|
33 | *
|
34 | * API:
|
35 | *
|
36 | * - [AppBar API](https://mui.com/api/app-bar/)
|
37 | * - inherits [Paper API](https://mui.com/api/paper/)
|
38 | */
|
39 | export default function AppBar(props: AppBarProps): JSX.Element;
|