react-device-detect#BrowserView TypeScript Examples
The following examples show how to use
react-device-detect#BrowserView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: nav.tsx From Figurify with Apache License 2.0 | 5 votes |
export function Nav() {
return (
<AppBar position={"sticky"} color={"transparent"} className={styles.Nav}>
<Toolbar>
<Link href="/">
<a><Typography variant="h4"
style={{
paddingRight: "40px", fontWeight: "bold",
...Pangolin,
color: "#ec5c5c"
}}>
{NAME}
</Typography></a>
</Link>
<Link href="/data">
<a><Typography variant="h6" style={{paddingRight: "40px", ...Pangolin}}>
<BrowserView>
Data Visualization
</BrowserView>
<MobileView>
Data
</MobileView>
</Typography></a>
</Link>
<Link href="/sort">
<a><Typography variant="h6" style={{paddingRight: "40px", ...Pangolin}}>
<BrowserView>
Sorting Visualization
</BrowserView>
<MobileView>
Sorting
</MobileView>
</Typography></a>
</Link>
<Link href="/minimax">
<a><Typography variant="h6" style={{...Pangolin}}>
<BrowserView>
Minimax Visualization
</BrowserView>
<MobileView>
Minmax
</MobileView>
</Typography></a>
</Link>
</Toolbar>
</AppBar>
);
}