Explorer


Palette
Collapsible
Headline

Usage


Svelte
<Explorer palette="tone">
    <ExplorerGroup label="Getting started">
        {#snippet icon()}
            <span class="material-symbols-outlined">rocket_launch</span>
        {/snippet}

        <ExplorerLink label="Install" href="/docs/install" />
        <ExplorerLink label="Themes" href="/docs/themes" active />
        <ExplorerLink label="Tokens" href="/docs/tokens" />
    </ExplorerGroup>

    <ExplorerGroup label="Components">
        {#snippet icon()}
            <span class="material-symbols-outlined">widgets</span>
        {/snippet}

        <ExplorerLink label="Button" href="/docs/button" />
        <ExplorerLink label="Card" href="/docs/card" />
        <ExplorerLink label="Modal" href="/docs/modal" />
    </ExplorerGroup>
</Explorer>

API


Explorer

PropTypeDefault
palette"accent" | "tone""tone"
aria_labelstring"Explorer"
childrenSnippetrequired
Prop palette
Type "accent" | "tone"
Default "tone"
Prop aria_label
Type string
Default "Explorer"
Prop children
Type Snippet
Default required

ExplorerGroup

PropTypeDefault
labelstringrequired
iconSnippetundefined
collapsiblebooleantrue
headlinebooleantrue
openbooleantrue
childrenSnippetrequired
Prop label
Type string
Default required
Prop icon
Type Snippet
Default undefined
Prop collapsible
Type boolean
Default true
Prop headline
Type boolean
Default true
Prop open
Type boolean
Default true
Prop children
Type Snippet
Default required

ExplorerLink

PropTypeDefault
labelstringrequired
hrefstringundefined
iconSnippetundefined
activebooleanfalse
nakedbooleanfalse
onclick() => voidundefined
Prop label
Type string
Default required
Prop href
Type string
Default undefined
Prop icon
Type Snippet
Default undefined
Prop active
Type boolean
Default false
Prop naked
Type boolean
Default false
Prop onclick
Type () => void
Default undefined