-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): add navigation style (#180)
Note: we need to use both this style and Tab style to create a navigation component in each application. Also make sure that you use "large" size TabList.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { makeStyles, shorthands, tokens } from "@fluentui/react-components"; | ||
|
||
/** | ||
* How to use: | ||
* ``` | ||
* <div className={navStyles.container}> | ||
* <TabList | ||
* className={navStyles.tabList} | ||
* size="large" | ||
* vertical | ||
* > | ||
* <Tab /> | ||
* <Tab /> | ||
* <div className={navStyles.spacer}/> | ||
* <Tab /> | ||
* </TabList> | ||
* </div> | ||
* ``` | ||
*/ | ||
export const useNavigationStyles = makeStyles({ | ||
container: { | ||
...shorthands.padding( | ||
tokens.spacingVerticalXXL, | ||
tokens.spacingHorizontalS, | ||
tokens.spacingVerticalL | ||
), | ||
backgroundColor: tokens.colorNeutralBackground4, | ||
}, | ||
spacer: { | ||
flexGrow: 1, | ||
}, | ||
tabList: { | ||
height: "100%", | ||
rowGap: tokens.spacingVerticalXS, | ||
}, | ||
}); |