File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ if( instance.getOption('direction') !== 'ltr') {
286
286
``` js
287
287
const [ TabList , PanelList , ready ] = useDynTabs ({
288
288
tabComponent : props => {
289
- const { id , isSelected , instance } = props;
289
+ const { id , isSelected , api : instance } = props;
290
290
return (
291
291
< button {... props .tabProps }>
292
292
{props .children }
@@ -302,7 +302,7 @@ if( instance.getOption('direction') !== 'ltr') {
302
302
or
303
303
``` js
304
304
const CustomTabComponent = props => {
305
- const { id , isSelected , instance } = props;
305
+ const { id , isSelected , api : instance } = props;
306
306
return (
307
307
< button {... props .tabProps }>
308
308
{props .children }
@@ -342,7 +342,7 @@ Default value for panelComponent option.
342
342
``` js
343
343
const [ TabList , PanelList , ready ] = useDynTabs ({
344
344
defaultPanelComponent : props => {
345
- const { id , isSelected , instance } = props;
345
+ const { id , isSelected , api : instance } = props;
346
346
return < div>< / div>
347
347
}
348
348
});
You can’t perform that action at this time.
0 commit comments