@material-ui/core
Version:
React components that implement Google's Material Design.
29 lines (25 loc) • 945 B
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;
/**
* 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';
export default function AppBar(props: AppBarProps): JSX.Element;