@material-ui/core
Version:
React components that implement Google's Material Design.
40 lines (36 loc) • 1.15 kB
TypeScript
import { PropTypes, StandardProps } from '..';
import { PaperProps } from '../Paper';
export interface AppBarProps extends StandardProps<PaperProps, AppBarClassKey> {
/**
* The color of the component. It supports those theme colors that make sense for this component.
*/
color?: PropTypes.Color | 'transparent';
/**
* The positioning type. The behavior of the different options is described
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
*/
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
}
export type AppBarClassKey =
| 'root'
| 'positionFixed'
| 'positionAbsolute'
| 'positionSticky'
| 'positionStatic'
| 'positionRelative'
| 'colorDefault'
| 'colorPrimary'
| 'colorSecondary';
/**
*
* Demos:
*
* - [App Bar](https://mui.com/components/app-bar/)
*
* API:
*
* - [AppBar API](https://mui.com/api/app-bar/)
* - inherits [Paper API](https://mui.com/api/paper/)
*/
export default function AppBar(props: AppBarProps): JSX.Element;