Retour

Onglets (tab)

Le composant onglet permet aux utilisateurs de naviguer dans différentes sections de contenu au sein d’une même page.

Documentation

Onglets 4 éléments

Contenu 1

  • list item
    • list item niveau 2
    • list item niveau 2
  • list item

Contenu 2

  • list item
  • list item

Contenu 3

  • list item
    • list item niveau 2
  • list item

Contenu 4

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item

<div class="village-tabs">
    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
        <li role="presentation">
            <button id="tabpanel-6600" class="village-tabs__tab village-icon-checkbox-circle-line village-tabs__tab--icon-left" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6600-panel">Label Tab 1</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6601" class="village-tabs__tab village-icon-checkbox-circle-line village-tabs__tab--icon-left" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6601-panel">Label Tab 2</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6602" class="village-tabs__tab village-icon-checkbox-circle-line village-tabs__tab--icon-left" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6602-panel">Label Tab 3</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6603" class="village-tabs__tab village-icon-checkbox-circle-line village-tabs__tab--icon-left" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6603-panel">Label Tab 4</button>
        </li>
    </ul>
    <div id="tabpanel-6600-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6600" tabindex="0">
        <!-- données de test -->
    </div>
    <div id="tabpanel-6601-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6601" tabindex="0">
        <!-- données de test -->
    </div>
    <div id="tabpanel-6602-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6602" tabindex="0">
        <!-- données de test -->
    </div>
    <div id="tabpanel-6603-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6603" tabindex="0">
        <!-- données de test -->
    </div>
</div>

Onglets 2 éléments

Contenu 1

  • list item
    • list item niveau 2
    • list item niveau 2
  • list item

Contenu 2

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
  • list item
    • list item niveau 2
    • list item niveau 2

<div class="village-tabs">
    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
        <li role="presentation">
            <button id="tabpanel-6607" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6607-panel">Label Tab 1</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6608" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6608-panel">Label Tab 2</button>
        </li>
    </ul>
    <div id="tabpanel-6607-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6607" tabindex="0">
        <!-- données de test -->
    </div>
    <div id="tabpanel-6608-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6608" tabindex="0">
        <!-- données de test -->
    </div>
</div>

Onglets dans onglets

Contenu 1

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item

Contenu 2

  • list item
    • list item niveau 2
    • list item niveau 2
  • list item

Contenu 1

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
    • list item niveau 2

Contenu 2

  • list item
    • list item niveau 2

Contenu 3

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
  • list item

Contenu 1

  • list item
    • list item niveau 2
    • list item niveau 2

Contenu 2

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
  • list item

Contenu 3

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
    • list item niveau 2
  • list item
    • list item niveau 2
    • list item niveau 2

Contenu 4

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
  • list item

Contenu 1

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
    • list item niveau 2
    • list item niveau 2
  • list item

Contenu 2

  • list item

Contenu 1

  • list item
  • list item

Contenu 2

  • list item
    • list item niveau 2
    • list item niveau 2
  • list item
    • list item niveau 2
    • list item niveau 2

Contenu 3

  • list item

<div class="village-tabs">
    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
        <li role="presentation">
            <button id="tabpanel-6650" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6650-panel">Main Tab 0</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6651" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6651-panel">Main Tab 1</button>
        </li>
    </ul>
    <div id="tabpanel-6650-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6650" tabindex="0">
        <div class="village-tabs">
            <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                <li role="presentation">
                    <button id="tabpanel-6640" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6640-panel">Nested Tab s0</button>
                </li>
                <li role="presentation">
                    <button id="tabpanel-6641" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6641-panel">Nested Tab s1</button>
                </li>
                <li role="presentation">
                    <button id="tabpanel-6642" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6642-panel">Nested Tab s2</button>
                </li>
            </ul>
            <div id="tabpanel-6640-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6640" tabindex="0">
                <div class="village-tabs">
                    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                        <li role="presentation">
                            <button id="tabpanel-6631" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6631-panel">Label Tab 1</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6632" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6632-panel">Label Tab 2</button>
                        </li>
                    </ul>
                    <div id="tabpanel-6631-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6631" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6632-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6632" tabindex="0">
                        <!-- données de test -->
                    </div>
                </div>
            </div>
            <div id="tabpanel-6641-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6641" tabindex="0">
                <div class="village-tabs">
                    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                        <li role="presentation">
                            <button id="tabpanel-6633" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6633-panel">Label Tab 1</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6634" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6634-panel">Label Tab 2</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6635" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6635-panel">Label Tab 3</button>
                        </li>
                    </ul>
                    <div id="tabpanel-6633-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6633" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6634-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6634" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6635-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6635" tabindex="0">
                        <!-- données de test -->
                    </div>
                </div>
            </div>
            <div id="tabpanel-6642-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6642" tabindex="0">
                <div class="village-tabs">
                    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                        <li role="presentation">
                            <button id="tabpanel-6636" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6636-panel">Label Tab 1</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6637" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6637-panel">Label Tab 2</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6638" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6638-panel">Label Tab 3</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6639" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6639-panel">Label Tab 4</button>
                        </li>
                    </ul>
                    <div id="tabpanel-6636-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6636" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6637-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6637" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6638-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6638" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6639-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6639" tabindex="0">
                        <!-- données de test -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="tabpanel-6651-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6651" tabindex="0">
        <div class="village-tabs">
            <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                <li role="presentation">
                    <button id="tabpanel-6648" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6648-panel">Nested Tab s0</button>
                </li>
                <li role="presentation">
                    <button id="tabpanel-6649" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6649-panel">Nested Tab s1</button>
                </li>
            </ul>
            <div id="tabpanel-6648-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6648" tabindex="0">
                <div class="village-tabs">
                    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                        <li role="presentation">
                            <button id="tabpanel-6643" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6643-panel">Label Tab 1</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6644" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6644-panel">Label Tab 2</button>
                        </li>
                    </ul>
                    <div id="tabpanel-6643-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6643" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6644-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6644" tabindex="0">
                        <!-- données de test -->
                    </div>
                </div>
            </div>
            <div id="tabpanel-6649-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6649" tabindex="0">
                <div class="village-tabs">
                    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
                        <li role="presentation">
                            <button id="tabpanel-6645" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6645-panel">Label Tab 1</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6646" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6646-panel">Label Tab 2</button>
                        </li>
                        <li role="presentation">
                            <button id="tabpanel-6647" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6647-panel">Label Tab 3</button>
                        </li>
                    </ul>
                    <div id="tabpanel-6645-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6645" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6646-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6646" tabindex="0">
                        <!-- données de test -->
                    </div>
                    <div id="tabpanel-6647-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6647" tabindex="0">
                        <!-- données de test -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

Accordéon dans onglets

Contenu

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item

Contenu

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item
  • list item

<div class="village-tabs">
    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
        <li role="presentation">
            <button id="tabpanel-6659" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6659-panel">Label Tab 1</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6660" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6660-panel">Label Tab 2</button>
        </li>
    </ul>
    <div id="tabpanel-6659-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6659" tabindex="0">
        <section class="village-accordion">
            <h3 class="village-accordion__title">
                <button class="village-accordion__btn" aria-expanded="false" aria-controls="accordion-6657">Intitulé accordéon</button>
            </h3>
            <div class="village-collapse" id="accordion-6657">
                <!-- données de test -->
            </div>
        </section>
    </div>
    <div id="tabpanel-6660-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6660" tabindex="0">
        <section class="village-accordion">
            <h3 class="village-accordion__title">
                <button class="village-accordion__btn" aria-expanded="false" aria-controls="accordion-6658">Intitulé accordéon</button>
            </h3>
            <div class="village-collapse" id="accordion-6658">
                <!-- données de test -->
            </div>
        </section>
    </div>
</div>

Onglets 100% largeur du viewport en mobile

Contenu 1

  • list item
  • list item

Contenu 2

Lorem ipsum dolor sit amet, consectetur adipiscing, link test incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et. Diam maecenas sed enim ut. Accumsan lacus vel facilisis volutpat est. Ut aliquam purus sit amet luctus. Lorem ipsum dolor sit amet consectetur adipiscing elit ut.

  • list item

<div class="village-tabs village-tabs--viewport-width">
    <ul class="village-tabs__list" role="tablist" aria-label="[A modifier | nom du système d'onglet]">
        <li role="presentation">
            <button id="tabpanel-6664" class="village-tabs__tab" tabindex="0" role="tab" aria-selected="true" aria-controls="tabpanel-6664-panel">Label Tab 1</button>
        </li>
        <li role="presentation">
            <button id="tabpanel-6665" class="village-tabs__tab" tabindex="-1" role="tab" aria-selected="false" aria-controls="tabpanel-6665-panel">Label Tab 2</button>
        </li>
    </ul>
    <div id="tabpanel-6664-panel" class="village-tabs__panel village-tabs__panel--selected" role="tabpanel" aria-labelledby="tabpanel-6664" tabindex="0">
        <!-- données de test -->
    </div>
    <div id="tabpanel-6665-panel" class="village-tabs__panel" role="tabpanel" aria-labelledby="tabpanel-6665" tabindex="0">
        <!-- données de test -->
    </div>
</div>

Paramètres d’affichage

Choisissez un thème pour personnaliser l’apparence du site.