···11+---
22+title: HeaderLayout
33+description: A flexible page layout component with unstyled slots for header, page content, and footer.
44+---
55+66+import { PropDocs } from '../../../lib/PropDocs'
77+import { Example } from '../../../lib/Example'
88+import { Basic } from '../../../examples/header-layout/basic'
99+import { WithFooter } from '../../../examples/header-layout/with-footer'
1010+import { Styled } from '../../../examples/header-layout/styled'
1111+1212+<Example src={Styled} noPadding />
1313+1414+## Installation
1515+1616+Run the following command to add the header layout component to your project.
1717+1818+```bash
1919+pnpm hip install header-layout
2020+```
2121+2222+## Props
2323+2424+This is a custom component built for page layouts with header, content, and footer slots.
2525+2626+<PropDocs components={["HeaderLayoutRoot", "HeaderLayoutHeader", "HeaderLayoutPage", "HeaderLayoutFooter"]} />
2727+2828+## Features
2929+3030+### Basic
3131+3232+A simple page layout with header and page content slots.
3333+3434+<Example src={Basic} noPadding />
3535+3636+### With Footer
3737+3838+Add a footer slot to your page layout.
3939+4040+<Example src={WithFooter} noPadding />
4141+4242+## Related Components
4343+4444+- [Flex](/docs/components/flex) - For flexible layouts within slots
4545+- [Grid](/docs/components/grid) - For two-dimensional layouts within slots
4646+- [Navbar](/docs/components/navbar) - For navigation in the header slot
4747+- [Footer](/docs/components/footer) - For footer content in the footer slot
+1-8
apps/docs/src/examples/footer/comprehensive.tsx
···6767 <Footer.SubscribeDescription>
6868 The latest news, articles, and resources, sent to your inbox weekly.
6969 </Footer.SubscribeDescription>
7070- <Footer.SubscribeInput
7171- onSubmit={(e) => {
7272- const formData = new FormData(e.currentTarget);
7373- const email = formData.get("email");
7474- alert(`Subscribed with: ${email}`);
7575- }}
7676- />
7070+ <Footer.SubscribeInput />
7771 </Footer.Subscribe>
7872 </Footer.Section>
7973 <Footer.Section>
···106100 </Footer.Root>
107101 );
108102}
109109-