Layout
A compound component providing the structure for a responsive page layout with top navigation, collapsible sidebar, and main content area.
import { Layout, T } from '@kaynora/ui'
export default function () {
return (
<Layout>
<Layout.TopNav><T>Navigation</T></Layout.TopNav>
<Layout.SideNav><T>Sidebar</T></Layout.SideNav>
<Layout.Content>
<Layout.Section><T>Content</T></Layout.Section>
</Layout.Content>
</Layout>
)
}
<Layout />
| Prop | Type | Default |
|---|
children | ReactElement | ReactElement[]
| — |
internal | {
root: HTMLDivElementProps
}
| undefined |
<Layout.TopNav />
| Prop | Type | Default |
|---|
children | ReactElement | ReactElement[]
| — |
internal | {
root: HTMLDivElementProps
content: HTMLElementProps
}
| undefined |
<Layout.SideNav />
| Prop | Type | Default |
|---|
children | ReactElement | ReactElement[]
| — |
internal | {
root: HTMLDivElementProps
button: ButtonProps
content: HTMLElementProps
}
| undefined |
<Layout.Content />
| Prop | Type | Default |
|---|
children | ReactElement | ReactElement[]
| — |
internal | {
root: HTMLElementProps
}
| undefined |
<Layout.Section />
| Prop | Type | Default |
|---|
children | ReactElement | ReactElement[]
| — |
internal | {
root: HTMLElementProps
}
| undefined |