class Primer::Alpha::TabContainer
This component requires javascript.
It only provides the tab functionality. If you want styled Tabs you can look at <%= link_to_component(Primer::Alpha::TabNav) %>.
Use ‘TabContainer` to create tabbed content with keyboard support. This component does not add any styles.
def call
def call render(Primer::BaseComponent.new(**@system_arguments)) { content } end
def initialize(**system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %>
def initialize(**system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = "tab-container" end
def render?
def render? content.present? end