Skip to content

Commit

Permalink
fix(tabs): add new doc in tab component (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsrodriguez authored Nov 3, 2023
1 parent 53e379c commit ab27ac0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
31 changes: 30 additions & 1 deletion docs/navigation/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,34 @@ With the prop <Tag text='disabledText' /> you can customize a message for disabl
`} />

#### <span>Hidden</span>

With the prop <Tag text='hidden' /> you can hide the tab

<Playground className="flex items-center">
<TabGroup >
<Tab label="Element First" />
<Tab label="Element Second" hidden />
<Tab label="Element Third" />
<Tab label="Element Disabled" disabled />
</TabGroup>

</Playground>

<WindowEditor
codeString={`import { TabGroup,Tabs } from 'dd360-ds'
<TabGroup>
<Tab label="Element First" />
<Tab label="Element Second" hidden />
<Tab label="Element Third" />
<Tab label="Element Disabled" disabled />
</TabGroup>
`} />

<br />

<br />

<br />
Expand All @@ -273,7 +301,8 @@ With the prop <Tag text='disabledText' /> you can customize a message for disabl
{ title: 'className', default: null, types: ['string'] },
{ title: 'childClassName', default: null, types: ['string'] },
{ title: 'onChange', default: null, types: ['function'] },
{ title: 'role', default: null, types: ['string'] }
{ title: 'role', default: null, types: ['string'] },
{ title: 'hidden', default: null, types: ['boolean'] }
]}
/>

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@algolia/autocomplete-core": "^1.8.3",
"@docsearch/react": "^3.5.1",
"@vercel/analytics": "^1.0.1",
"dd360-ds": "6.16.13",
"dd360-ds": "6.16.14",
"dd360-utils": "18.1.0",
"gray-matter": "^4.0.3",
"i18next": "^22.4.9",
Expand Down

0 comments on commit ab27ac0

Please sign in to comment.