Ga naar de inhoud

Componenten

Accordeon

Gestapelde secties waarvan telkens één paneel wordt uitgevouwen.

Gebruik

Basis

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>

Meerdere tegelijk geopend

Panelen blijven onafhankelijk open in plaats van dat het vorige paneel sluit.

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>

Gesloten bij het starten

Laat de standaardwaarde weg en elk paneel begint ingeklapt.

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>

Panelen met blokken

Een paneel kan elk blok bevatten, dus een antwoord kan een tabel of een call-to-action zijn.

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>

Opbouw

Accordeon bestaat uit de onderstaande blokken. Elk blok is zelfstandig en wordt alleen binnen het bovenliggende blok weergegeven.

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

Attributen

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

bsui/accordion-item

AttribuutTypeStandaard
value text —
disabled toggle false

bsui/accordion-panel

Dit blok heeft geen kenmerken.

bsui/accordion-trigger

AttribuutTypeStandaard
title richtext —