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 />
PropTypeDefault
children
ReactElement | ReactElement[]
internal
{
  root: HTMLDivElementProps
}
undefined
<Layout.TopNav />
PropTypeDefault
children
ReactElement | ReactElement[]
internal
{
  root: HTMLDivElementProps
  content: HTMLElementProps
}
undefined
<Layout.SideNav />
PropTypeDefault
children
ReactElement | ReactElement[]
internal
{
  root: HTMLDivElementProps
  button: ButtonProps
  content: HTMLElementProps
}
undefined
<Layout.Content />
PropTypeDefault
children
ReactElement | ReactElement[]
internal
{
  root: HTMLElementProps
}
undefined
<Layout.Section />
PropTypeDefault
children
ReactElement | ReactElement[]
internal
{
  root: HTMLElementProps
}
undefined