Close Docs

Hub (<disco-hub>)

A container for "Hub" experiences, featuring a large panoramic background, a large header title, and horizontally scrolling sections.

DiscoHub

Usage

<disco-hub header="Store" background="assets/background.jpg">
    <disco-hub-section header="highlight" width="400px">
        <!-- content -->
    </disco-hub-section>
    <disco-hub-section header="apps" width="320px">
        <!-- content -->
    </disco-hub-section>
</disco-hub>

Attributes

<disco-hub>

<disco-hub-section>

App Bar Overrides

Add a template[data-appbar] inside a hub section to override the global app bar for that section.

<disco-hub-section header="camera">
    <template data-appbar>
        <disco-app-bar mode="compact">
            <disco-app-bar-icon-button icon="camera" label="camera"></disco-app-bar-icon-button>
        </disco-app-bar>
    </template>
    <!-- section content -->
</disco-hub-section>