Skip to content
R

react-tabs

React tabs component

by reactjsFree

#21in UI Libraries
0In stores

Description

react-tabs is an accessible tab component for React, published by the reactjs organization and documented at reactcommunity.org. You build a…

Highlights

  • Accessible tabs with built-in keyboard handling
  • Controlled and uncontrolled modes
  • Right-to-left layout support through a direction prop
  • Works with React 18 and newer in version 5

Ratings & Reviews

No ratings yet

Be the first to rate react-tabs.

People also visit

T

@tommasini/react-native-scrollable-tab-view

This is a fork of react-native-scrollable-tab-view

UI Libraries
Launch
R

react-native-tabs

React Native platform-independent tabs

UI Libraries
Launch
R

react-swipeable-views

A React Component for binded Tabs and Swipeable Views

UI Libraries
Launch
F

focus-trap-react

A React component that traps focus

UI Libraries
Launch
R

react-toggle

An elegant, accessible toggle component for React. Also a glorified checkbox

UI Libraries
Launch
R

react-range

Range input. Slides in all directions

UI Libraries
Launch

react-tabs FAQ

What does react-tabs do?

It provides an accessible tab component for React, so you can switch between panels of content with the keyboard and the mouse.

Which React version do I need?

Version 5 or newer needs React 18 or newer. Version 4 needs React 16.8 or newer.

How do I install it?

Install react-tabs with npm or yarn, then follow the basic example in the README.

Can I set the open tab?

Yes. defaultIndex sets the tab that opens first, using a zero-based index, in uncontrolled mode.

Does it support right-to-left text?

Yes. The direction prop accepts rtl or ltr.

Was it tested on mobile?

The README says it was tested on real mobile devices and browsers.

What are the best react-tabs alternatives?

Popular alternatives to react-tabs include @tommasini/react-native-scrollable-tab-view, react-native-tabs and react-swipeable-views. See all react-tabs alternatives

Developer Stuff

Badges