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') {
286286``` js
287287 const [ TabList , PanelList , ready ] = useDynTabs ({
288288 tabComponent : props => {
289- const { id , isSelected , instance } = props;
289+ const { id , isSelected , api : instance } = props;
290290 return (
291291 < button {... props .tabProps }>
292292 {props .children }
@@ -302,7 +302,7 @@ if( instance.getOption('direction') !== 'ltr') {
302302or
303303``` js
304304const CustomTabComponent = props => {
305- const { id , isSelected , instance } = props;
305+ const { id , isSelected , api : instance } = props;
306306 return (
307307 < button {... props .tabProps }>
308308 {props .children }
@@ -342,7 +342,7 @@ Default value for panelComponent option.
342342``` js
343343 const [ TabList , PanelList , ready ] = useDynTabs ({
344344 defaultPanelComponent : props => {
345- const { id , isSelected , instance } = props;
345+ const { id , isSelected , api : instance } = props;
346346 return < div>< / div>
347347 }
348348 });
You can’t perform that action at this time.
0 commit comments