Skip to content

Commit 04a014a

Browse files
update readme
1 parent c809c1d commit 04a014a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,9 +1229,16 @@ export default () => {
12291229
```js
12301230
useDynamicTabs(
12311231
{
1232+
tabs: [
1233+
{id: '1', title: 'tab1', panelComponent: <span>tab content 1</span>},
1234+
{id: '2', title: 'tab2', panelComponent: <span>tab content 2</span>},
1235+
{id: '3', title: 'tab3', panelComponent: <span>tab content 3</span>},
1236+
],
1237+
selectedTabID: '1',
12321238
moreButtonPlugin_iconComponent: ({instance}) => {
12331239
return <i className={`fa fa-chevron-${instance.getOption('direction') === 'rtl' ? 'left' : 'right'}`} />;
12341240
},
1241+
moreButtonPlugin_buttonTooltip: 'show more tabs',
12351242
},
12361243
[MoreButtonPlugin],
12371244
);

0 commit comments

Comments
 (0)