tabs

v3.9.2arrow_drop_down
v3.9.2
STATUS
Passing
DOWNLOADS
2,169
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 months ago
subject
Tabs make it easy to explore and switch between different views.
1 contributor
Like
Use tabs in your project ?
Copied
npm i @bit/mui-org.material-ui.tabs
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
modified
chevron_left
chevron_right
Properties
NameTypeDefault valueDescription
onChange
function
classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
color
'primary' | 'secondary'

The color of the tab indicator.

classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
direction
'left' | 'right'

Which direction should the button indicate?

onClick
function

Callback to execute for button press.

visible
booltrue

Should the button be present or just consume space.

action
function

This object contains all possible actions that can be triggered programmatically.

centered
boolfalse

If true, the tabs will be centered. This property is intended for large views.

children
node

The content of the component.

classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
component
custom'div'

The component used for the root node. Either a string to use a DOM element or a component.

fullWidth
custom

If true, the tabs will grow to use all the available space. This property is intended for small views, like on mobile.

indicatorColor
'secondary' | 'primary''secondary'

Determines the color of the indicator.

onChange
function

The event source of the callback

scrollable
custom

If true, it will invoke scrolling properties and allow for horizontally scrolling (or swiping) of the tab bar.

ScrollButtonComponent
customTabScrollButton

The component used to render the scroll buttons.

scrollButtons
'auto' | 'on' | 'off''auto'

Determine behavior of scroll buttons when tabs are set to scroll auto will only present them on medium and larger viewports on will always present them off will never present them

TabIndicatorProps
object

Properties applied to the TabIndicator element.

textColor
'secondary' | 'primary' | 'inherit''inherit'

Determines the color of the Tab.

theme
object
value
any

The value of the currently selected Tab. If you don’t want any selected Tab, you can set this property to false.

variant
'standard' | 'scrollable' | 'fullWidth''standard'

Determines additional display behavior of the tabs:

  • scrollable will invoke scrolling properties and allow for horizontally scrolling (or swiping) of the tab bar. -fullWidth will make the tabs grow to use all the available space, which should be used for small views, like on mobile.
  • standard will render the default state.