You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2025. It is now read-only.
@@ -51,7 +47,7 @@ class MyApp extends React.Component {
51
47
52
48
#### With Custom Indicator
53
49
54
-
Possibly you don't want to use the default underline indicator, but instead would like to use an icon. You'll need to add an `indicator` prop, which is a function that returns a `<TabIndicator />` element.
50
+
Possibly you don't want to use the default underline indicator, but instead would like to use an icon. You'll need to add an `indicatorContent` prop, which should be set to an icon element.
55
51
56
52
```js
57
53
importReactfrom'react';
@@ -65,32 +61,12 @@ class MyApp extends React.Component {
@@ -101,9 +77,10 @@ Prop Name | Type | Description
101
77
active | boolean | If true will activate the tab and indicator.
102
78
className | string | Classes to appear on className attribute of root element.
103
79
isFadingIndicator | boolean | Enables a fading indicator, instead of sliding (default).
104
-
indicator | function | Function that is passed props as an argument, that must return a `<TabIndicator />` element. The `<TabIndicator />` element must be passed `active`, `ref`, and `previousIndicatorClientRect` props. See example above.
80
+
indicatorContent | element | Element that will appear within the `<TabIndicator />` element.
105
81
minWidth | boolean | If true will display the `<Tab />` as narrow as possible.
106
82
isMinWidthIndicator | boolean | If true will display the `<TabIndicator />` to the size of the longest content element.
83
+
isIconIndicator | boolean | If true will display the indicator content in the center of the tab.
107
84
previousIndicatorClientRect | ClientRect | The indicator's clientRect that was previously activated.
108
85
onTransitionEnd | function | transitionend event callback handler.
0 commit comments