Skip to main content Red Hat Design System logo Contribute on Github

Tabs

Overview Style Guidelines Code Demos Accessibility

Installation

Usage

<rh-tabs>
<rh-tab slot="tab">Tab 1</rh-tab>
<rh-tab-panel>Tab 1 content</rh-tab-panel>
<rh-tab slot="tab">Tab 2</rh-tab>
<rh-tab-panel>Tab 2 content</rh-tab-panel>
<rh-tab slot="tab">Tab 3</rh-tab>
<rh-tab-panel>Tab 3 content</rh-tab-panel>
<rh-tab slot="tab">Tab 4</rh-tab>
<rh-tab-panel>Tab 4 content</rh-tab-panel>
</rh-tabs>

rh-tabs

Slots 2
Slot Name Description
tab

Must contain one or more <rh-tab>

Must contain one or more <rh-tab-panel>

Attributes 8 Methods 1 Events 0 CSS Shadow Parts 4 CSS Custom Properties 2 Design Tokens 0

rh-tab

The tab button for use within a rh-tabs element, must be paired with a rh-tab-panel.

Slots 2
Slot Name Description
icon

Can contain an <svg> or <pf-icon>

Tab title text

Attributes 2 Methods 0 Events 1 CSS Shadow Parts 3 CSS Custom Properties 6 Design Tokens 0

rh-tab-panel

The tab panel for use within a rh-tabs element, must be paired with a rh-tab.

Slots 1
Slot Name Description

Panel content should follow guidelines for tab panel content layout

Attributes 0 Methods 0 Events 0 CSS Shadow Parts 0 CSS Custom Properties 0 Design Tokens 0
© 2021-2024 Red Hat, Inc. Deploys by Netlify