Layout renders 2 components:
- Page Header
- Page Content
Page Header will render:
- Back to Home Button
- Heading saying "Weather Report"
- Search Textbox where user can search search for a city
Page Content will render whatever is passed as children
<Layout>
<h1>Hello</h1>
</Layout>
* indicates required fields
PropName | Default Value | Type | Description |
---|---|---|---|
children* | - | ReactNode | will be passed on children to page content, which will render whatever is passed in |
className | - | string | root element of this component will get the class that is passed in as className |
showHeaderBackButton | false | true false |
will be passed on to page header which will render the back button if this property is true, otherwise it will hide the back button |
Layout - Normal
Layout - Back button
Layout - fetching location