8.1.0 • Published 5 months ago

@hashicorp/react-tabs v8.1.0

Weekly downloads
3,642
License
MPL-2.0
Repository
github
Last release
5 months ago

Tabs

Tabs will render arbitrary tabbed content based on Tab items passed as children.

Example Usage

<Tabs>
  <Tab heading="First Tab">
    <p>First tab content</p>
  </Tab>
  <Tab heading="Second Tab">
    <p>Second tab content</p>
  </Tab>
  <Tab heading="Third Tab">
    <p>Third tab content</p>
  </Tab>
</Tabs>

Component Props

Tabs

NameTypeDescriptionRequired
childrenReact.ReactNodeTab components to render.true
defaultTabIdxnumberIf set, the tab with the specified ID will be active by default. If not set or if the ID does not match, it will default to 0false
centeredbooleanIf true, the tabs are centered in their container, rather than left-alignedfalse
fullWidthBorderbooleanIf true, the border line underneath the tabs expands to the full width of the container, rather than being slightly padded from the edgesfalse

Tab

NameTypeDescriptionRequired
headingstringTitle of the tabtrue
groupstringA unique identifier for a tab 'group' that, when active, all Tabs with this id will become active when one is selected. Note it's necessary to wrap the page with TabProvider for this feature to function.false
childrenReact.ReactNodeContent that should render when the associated tab is active.false
8.1.0

5 months ago

8.0.0

1 year ago

7.2.1

2 years ago

7.2.0

2 years ago

7.1.2

2 years ago

7.1.1

2 years ago

7.1.0

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

6.1.1

3 years ago

6.1.0

3 years ago

6.0.2-alpha.65

3 years ago

6.0.2-alpha.60

3 years ago

5.0.1-alpha.52

3 years ago

5.0.1-alpha.53

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.1-alpha.27

3 years ago

5.0.1-alpha.17

3 years ago

5.0.0

3 years ago

4.0.1-next.34

3 years ago

4.0.1-pr170.28

3 years ago

4.0.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

0.6.3

4 years ago

0.6.2

4 years ago

1.0.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.3.7-alpha.3

4 years ago

0.4.0

4 years ago

0.3.7-alpha.2

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.3-alpha.0

4 years ago

0.2.2-alpha.0

4 years ago

0.2.1-alpha.0

4 years ago

0.2.0-alpha.0

4 years ago

0.1.0

4 years ago

0.0.1-alpha.1

4 years ago

0.0.1-alpha.0

4 years ago

0.0.1-react-v2.9

4 years ago

0.0.1-react-v2.6

4 years ago

0.0.1-react-v2.7

4 years ago

0.0.1-react-v2.4

4 years ago

0.0.1-react-v2.5

4 years ago

0.0.1-react-v2.3

4 years ago

0.0.1-react-v2.2

4 years ago

0.0.1-react-v2.1

4 years ago

0.0.1-react-v2.0

4 years ago