Tabs Sets

    +

    Set and Create Tabs

    To use the tabs block in a page, set the tabs attribute in the document header.

    = Page Title
    :tabs:

    Then, in the body of your page, you can create a set of tabs.

    [{tabs}] (1)
    ==== (2)
    Tab 1 Title:: (3)
    + (4)
    -- (5)
    This is the content of the first tab.
    
    Another paragraph in the first tab.
    
    [source,console]
    ----
    $ a code block
    ----
    --
    (6)
    Tab 2 Title::
    +
    This is the content of the second tab. (7)
    ====
    1 Reference the tabs attribute in the block’s attribute list.
    2 Place the tab titles and content in a delimited example block (====).
    3 The tab title is directly followed by two colons (::).
    4 Insert a list continuation to attach the tab contents to the tab title.
    5 Enter compound tab contents in a delimited open block (--).
    6 Insert a blank line between a tab’s content and the title of the next tab.
    7 If the tab contents is a single paragraph, it can be attached without enclosing it in an open block.

    This tabs set is rendered as:

    • Tab 1 Title

    • Tab 2 Title

    This is the content of the first tab.

    Another paragraph in the first tab.

    $ a code block

    This is the content of the second tab.

    See a tabs set in action on the Sync Gateway Getting Started page.