This component is part of navigation components such as Primer::Alpha::TabNav
and Primer::Alpha::UnderlineNav and should not be used by itself.
TabComponent renders the selected anchor tab with aria-current="page" by default.
When the selected tab does not correspond to the current page, such as in a nested inner tab, make sure to use aria-current="true"
Whether the Tab is an item in a <ul> list.
Whether the Tab is selected or not.
Whether the Tab has an associated panel.
Only applies if with_panel is true. Unique id of panel.
Classes that must always be applied to icons.
System arguments to be used in the <li> wrapper when the tab is an item in a list.
Panel controlled by the Tab. This will not render anything in the tab itself.
It will provide a accessor for the Tab's parent to call and render the panel
content in the appropriate place.
Refer to UnderlineNav and TabNav implementations for examples.