logo-icon
STW UI

Layout

Layout handles the overall layout of a page.

Usage

svelte
import { Layout } from 'stwui';
// OR
import Layout from 'stwui/layout'; // for tree shaking

Default

Header
Header Extra
Body
Footer

With Sidebar

Header
Header Extra
Sidebar
Body
Footer

With Sidebar Right

Header
Header Extra
Body
Sidebar
Footer

Sidebar Outside

Sidebar
Header
Header Extra
Body
Footer

Layout.Content Props

collapsed boolean false
collapsedWidth string 4.5rem
expandedWidth string 12rem

Layout.Header Slots

extra <Layout.Header.Extra slot="extra" />

Layout Class Identifiers

stwui-layout
stwui-layout-header
stwui-layout-header-extra
stwui-layout-footer
stwui-layout-footer-extra
stwui-layout-sidebar
stwui-layout-body
stwui-layout-content