Documentation
¶
Overview ¶
templ: version: v0.3.1020
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Header renders inside AppShell's persistent <header> landmark; supply
// content, not another <header>; nil omits the wrapper.
Header templ.Component
// Sidebar renders desktop navigation; nil omits the sidebar wrapper.
Sidebar templ.Component
// Content renders inside the shell's single scrollable main region. When
// nil, AppShell renders its templ children as the content slot.
Content templ.Component
// MainID identifies the main region and skip-link target; default is "main-content".
MainID string
// SkipLinkLabel is the visible keyboard-focus label; default is "Skip to main content".
SkipLinkLabel string
// RootClass appends CSS classes to the outer shell element.
RootClass string
// RootAttrs appends arbitrary HTML attributes to the outer shell element.
RootAttrs templ.Attributes
// HeaderClass appends CSS classes to the header wrapper.
HeaderClass string
// HeaderAttrs appends arbitrary HTML attributes to the header wrapper.
HeaderAttrs templ.Attributes
// SidebarClass appends CSS classes to the sidebar wrapper.
SidebarClass string
// SidebarAttrs appends arbitrary HTML attributes to the sidebar wrapper.
SidebarAttrs templ.Attributes
// MainClass appends CSS classes to the main region.
MainClass string
// MainAttrs appends arbitrary HTML attributes to the main region. AppShell
// supplies tabindex="-1" by default so the skip-link target can receive
// programmatic focus; set tabindex here to override that default.
MainAttrs templ.Attributes
}
Config holds the application-shell regions and target-specific HTML hooks.
Click to show internal directories.
Click to hide internal directories.