---json
{
"canonical": ":deprecated:tabs",
"page_id": "g30wohgupvvtz37nhdfny"
}
---
====== Tabs and TabPanels (Deprecated for panels) ======
===== About =====
Deprecated since [[release:release|version 1.12]] for [[docs:layout:component:tabs|tabs with panel]].
Why?
* It has a simpler interface (no needs for two block tabs and tabpanels)
* A panel can also be laid out as accordion
===== Syntax =====
The syntax has two parts:
* First the definition of the [[#tabs]]
* Then the definition of the [[#tabpanels]]
==== Tabs ====
Text
where:
* ''skin'' can take the value [[#tabs]] (default) or [[#pills]]
* ''pannel'' is the ''id'' of the [[#tabpannels|tabpannel]]. It should be unique on the whole page ([[docs:content:heading|heading included]])
* ''selected'' defines the default selected panel.
==== Tabpanels ====
Text
where:
* the ''id value'' of the ''panel'' should follow the following rules (ie HTML4 compliant)
* it must be unique on the page
* it must contain at least one character.
* it must **not** contain any space characters.
* it must begin with a letter ''[A-Za-z]''
* it may be followed by any number of letters, digits ''[0-9]'', hyphens ''-'', underscores ''_'', colons '':'', and periods ''.''
* the content of a ''tabpanel'' accepts all syntax (included the [[release:deprecated:title|dokuwiki heading format]] Since [[release:release|version 1.7]])
===== Example =====
The most important in the ''tabs'' syntax is that the ''panel'' value of a ''tab'' should be equal to the ''id'' of its ''panel''.
This is how a ''tab'' know which ''panel'', it should show or hide.
==== Tabs ====
Home
Other syntaxes
Raw denim you probably haven't heard of them jean shorts Austin.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid.
Other syntax are also accepted. Example with a table: \\ \\
^ UI Components ^ Description ^
| [[ui:badge|badge]] | A small status descriptors |
| [[ui:note|note]] | A paragraph that is parenthetic or ancillary to the main text. |
| [[ui:ui|See the full list ...]] ||
==== Pills ====
Home
Profile
==== My Home ====
Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
Profile
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.
===== Documentation / Reference =====
* [[https://getbootstrap.com/docs/4.0/components/navs/|Bootstrap navs]]
* [[https://material.io/components/tabs|Material IO tabs documentation]]
* [[https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role|Aria Tab Role]]