forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tabs] Add new property: fixedTabWidth
The fixedTabWidth property sets a fixed width to each tab label and aligns them to the left instead of using full width. If the prop is not set, behavior is back to normal. This solves issue mui#4420. The docs have also been updated with information and an example for this prop.
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
docs/src/app/components/pages/components/Tabs/ExampleFixedWidth.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import {Tabs, Tab} from 'material-ui/Tabs'; | ||
|
||
const TabsExampleFixedWidth = () => ( | ||
<Tabs fixedTabWidth={200}> | ||
<Tab label="Tab One" /> | ||
<Tab label="Tab Two" /> | ||
<Tab label="Tab Three" /> | ||
</Tabs> | ||
); | ||
|
||
export default TabsExampleFixedWidth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters