Zum Inhalt springen

Komponenten

Akkordeon

Gestapelte Bereiche, von denen jeweils ein Panel ausgeklappt wird.

Verwendung

Einfach

Orders leave the warehouse within two working days.
Anything unopened can go back within thirty days.
HTML
<bs:bsui-accordion defaultValue="shipping">
  <bs:bsui-accordion-item value="shipping">
    <bs:bsui-accordion-trigger title="How long does shipping take?" />
    <bs:bsui-accordion-panel>Orders leave the warehouse within two working days.</bs:bsui-accordion-panel>
    </bs:bsui-accordion-item>
    <bs:bsui-accordion-item value="returns">
      <bs:bsui-accordion-trigger title="Can I return an order?" />
      <bs:bsui-accordion-panel>Anything unopened can go back within thirty days.</bs:bsui-accordion-panel>
      </bs:bsui-accordion-item>
    </bs:bsui-accordion>

Mehrere gleichzeitig geöffnet

Panels bleiben unabhängig voneinander geöffnet, statt das vorherige zu schließen.

On the day you subscribe, then the same day every month after that.
Add or remove seats whenever you like and the next invoice is prorated.
Your sites keep running until the end of the period you already paid for.
HTML
<bs:bsui-accordion multiple="true" defaultValue="billing">
  <bs:bsui-accordion-item value="billing">
    <bs:bsui-accordion-trigger title="When am I charged?" />
    <bs:bsui-accordion-panel>On the day you subscribe, then the same day every month after that.</bs:bsui-accordion-panel>
    </bs:bsui-accordion-item>
    <bs:bsui-accordion-item value="seats">
      <bs:bsui-accordion-trigger title="Can I add seats later?" />
      <bs:bsui-accordion-panel>Add or remove seats whenever you like and the next invoice is prorated.</bs:bsui-accordion-panel>
      </bs:bsui-accordion-item>
      <bs:bsui-accordion-item value="cancel">
        <bs:bsui-accordion-trigger title="What happens if I cancel?" />
        <bs:bsui-accordion-panel>Your sites keep running until the end of the period you already paid for.</bs:bsui-accordion-panel>
        </bs:bsui-accordion-item>
      </bs:bsui-accordion>

Zu Beginn geschlossen

Lässt du den Standardwert weg, sind alle Panels anfangs eingeklappt.

Map your columns once and the mapping is remembered for the next import.
Every workspace has a token, and the endpoints mirror what the interface does.
Export the whole workspace as JSON at any time, with no notice period.
HTML
<bs:bsui-accordion>
  <bs:bsui-accordion-item value="csv">
    <bs:bsui-accordion-trigger title="Can I import from a CSV?" />
    <bs:bsui-accordion-panel>Map your columns once and the mapping is remembered for the next import.</bs:bsui-accordion-panel>
    </bs:bsui-accordion-item>
    <bs:bsui-accordion-item value="api">
      <bs:bsui-accordion-trigger title="Is there an API?" />
      <bs:bsui-accordion-panel>Every workspace has a token, and the endpoints mirror what the interface does.</bs:bsui-accordion-panel>
      </bs:bsui-accordion-item>
      <bs:bsui-accordion-item value="export">
        <bs:bsui-accordion-trigger title="Can I take my data with me?" />
        <bs:bsui-accordion-panel>Export the whole workspace as JSON at any time, with no notice period.</bs:bsui-accordion-panel>
        </bs:bsui-accordion-item>
      </bs:bsui-accordion>

Panels mit Blöcken

Ein Panel nimmt beliebige Blöcke auf, sodass eine Antwort eine Tabelle oder einen Handlungsaufruf enthalten kann.

Plan
Sites
Starter
3
Studio
25

Every plan includes email support with a reply inside one working day.

HTML
<bs:bsui-accordion defaultValue="limits">
  <bs:bsui-accordion-item value="limits">
    <bs:bsui-accordion-trigger title="What are the plan limits?" />
    <bs:bsui-accordion-panel>
      <bs:bsui-table sortable="false">
        <bs:bsui-table-header>
          <bs:bsui-table-header-cell columnId="plan" label="Plan" sortable="false" />
          <bs:bsui-table-header-cell columnId="sites" label="Sites" sortable="false" />
        </bs:bsui-table-header>
        <bs:bsui-table-body>
          <bs:bsui-table-row>
            <bs:bsui-table-cell>Starter</bs:bsui-table-cell>
              <bs:bsui-table-cell>3</bs:bsui-table-cell>
              </bs:bsui-table-row>
              <bs:bsui-table-row>
                <bs:bsui-table-cell>Studio</bs:bsui-table-cell>
                  <bs:bsui-table-cell>25</bs:bsui-table-cell>
                  </bs:bsui-table-row>
                </bs:bsui-table-body>
              </bs:bsui-table>
            </bs:bsui-accordion-panel>
          </bs:bsui-accordion-item>
          <bs:bsui-accordion-item value="support">
            <bs:bsui-accordion-trigger title="How do I reach support?" />
            <bs:bsui-accordion-panel>
              <bs:bsui-stack direction="column" gap="3" align="start">
                <bs:bsui-text content="Every plan includes email support with a reply inside one working day." variant="muted" />
                <bs:bsui-button label="Contact support" variant="outline" size="sm" />
              </bs:bsui-stack>
            </bs:bsui-accordion-panel>
          </bs:bsui-accordion-item>
        </bs:bsui-accordion>

Aufbau

Akkordeon besteht aus den folgenden Blöcken. Jeder davon ist ein eigener Block, der nur innerhalb seines übergeordneten Blocks gerendert wird.

  • bsui/accordion
  • bsui/accordion-item
  • bsui/accordion-panel
  • bsui/accordion-trigger

Attribute

AttributTypStandard
defaultValue text —
multiple toggle false
orientation vertical horizontal vertical
disabled toggle false
loop toggle true

bsui/accordion-item

AttributTypStandard
value text —
disabled toggle false

bsui/accordion-panel

Dieser Block nimmt keine Attribute entgegen.

bsui/accordion-trigger

AttributTypStandard
title richtext —