Agave Header
The header provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions.
- Usage
- Props
Basic Header
pages/index.tsxexport default function Header() {
return (
<AgaveHeader title="My awesome project" />
);
}
Default logo
pages/index.tsxexport default function Header() {
return (
<AgaveHeader
title="My awesome project"
fullLogo
/>
);
}
Small logo
pages/index.tsxexport default function Header() {
return (
<AgaveHeader
title="My awesome project"
smallLogo
/>
);
}
Logo with custom link
pages/index.tsxexport default function Header() {
return (
<AgaveHeader
title="My awesome project"
logoLink="https://github.com/99minutos/agave-material"
smallLogo
/>
);
}
User props
Add AgaveUser
component to endAdornment prop. See the documentation of AgaveUser.
Live editor
https://station-management.vercel.app/
Editor en vivo <div style={{position: 'relative', height: '50px'}}>
<AgaveHeader
logoLink="https://github.com/99minutos/agave-material"
title="Agave Material Library"
appBarProps={{position: 'absolute'}}
/>
</div>
ResultadoLoading...
Props
Name | Type | Default | Description |
---|---|---|---|
title | string | The title of the project. | |
fullLogo | boolean | false | Large logo of 99minutos. |
smallLogo | boolean | false | Small logo of 99minutos. |
logoLink | string | The link of the 99minutos logo. | |
startAdornment | object ReactNode | node | {} | The component used for the root node. Either a string to use a HTML element or a component. |
endAdornment | object ReactNode | node | {} | The component used for the root node. Either a string to use a HTML element or a component. |
menuOptions | Array | [] | The component used for the root node. Either a string to use a HTML element or a component. |
appBarProps | Array | object | bool | {} | See material-ui API documentation for the React AppBar component. |
toolBarProps | Array | object | bool | {} | See material-ui API documentation for the React ToolBar component. |