<ui-shell>

Application shell with collapsible sidebar and top bar.

Shell · stable · since 2.0.0 · extends _UIElement

Examples

<ui-shell><ui-topbar>App</ui-topbar><ui-sidebar>Menu</ui-sidebar><main>Content</main></ui-shell>
<ui-shell collapsed><ui-sidebar>Menu</ui-sidebar><main>Content</main></ui-shell>

Playground

Generated HTML

Event log

    API

    Attributes and properties

    PropertyAttributeTypeDefaultDescription
    disableddisabledbooleanfalse
    busydata-ui-busybooleanfalse
    collapsedcollapsedbooleanfalseCollapse the sidebar.
    sidebarOpensidebar-openbooleanfalseMobile sidebar open state.
    persistpersistbooleanfalseRemember the collapsed state in localStorage.

    Methods

    Events

    Slots

    CSS classes