defmodule PyrauiWeb.DocsLive.TabsDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Tabs

Tabs component for navigation between different content sections.

Examples

<:tab id="tab-1" label="Tab 1" active={true}>Content for tab 1 <:tab id="tab-2" label="Tab 2" active={false}>Content for tab 2 <:tab id="tab-3" label="Tab 3" active={false}>Content for tab 3

    <.tabs>
      <:tab id="tab-1" label="Tab 1" active={true}>Content 1</:tab>
      <:tab id="tab-2" label="Tab 2">Content 2</:tab>
    </.tabs>
            

Props

Prop Type Default Description
id string "tabs" Unique identifier for tabs container
tab (slot) slot required Tab items with id, label, and active attributes
""" end end