@material-ui/icons APIs
- Close
- ExpandMore
- Add
- ExpandLess
- ArrowDropDown
- GitHub
- Check
- ArrowUpward
- ArrowDownward
- MoreVert
- Launch
- Info
- ChevronRight
- Edit
- Clear
- HelpOutline
- Delete
- Search
- Visibility
- VisibilityOff
- Settings
- ExitToApp
- Error
- InfoOutlined
- ArrowDropUp
- Brightness3
- CheckCircle
- KeyboardArrowRight
- KeyboardArrowDown
- KeyboardArrowUp
- Schedule
- ImageRounded
- Refresh
- KeyboardArrowLeft
- ArrowForward
- WarningRounded
- CloudDownload
- FullscreenExit
- Notifications
- ChevronLeft
- VolumeUp
- ArrowBack
- Work
- Person
- Favorite
- SearchOutlined
- AccountCircle
- Send
- Warning
- FirstPage
- LastPage
- Brightness5
- Telegram
- AccountBalanceWallet
- NotificationsNone
- AddCircle
- SwapHoriz
- AccessTime
- DoneOutlined
- ChevronRightRounded
- List
- ViewModule
- ThumbDownOutlined
- ThumbUpOutlined
- Forum
- CallMade
- PlayCircleOutline
- Cancel
- CancelRounded
- ArrowForwardIos
- LiveHelp
- AllInbox
- Face
- People
- SettingsPower
- NavigateNext
- NavigateBefore
- Save
- LayersClear
- Collections
- ThumbDown
- ThumbUp
- ZoomIn
- ZoomOut
- Fullscreen
- BarChart
- Image
- CenterFocusWeak
- VolumeDown
- Copyright
- DirectionsBoatRounded
- Create
- DeleteOutline
- DeleteOutlineOutlined
- CloudUploadOutlined
- PlayArrow
- Stop
- Done
- Undo
- FileCopy
- Menu
- Home
- Accessibility
- NotificationsActive
- Today
- Gavel
- AddAPhoto
- Dashboard
- Devices
- Event
- FitnessCenter
- Remove
- PinDrop
- Toc
- Group
- MenuBook
- NotListedLocation
- LocationOff
- Alarm
- BrightnessMedium
- Cloud
- ListAlt
- Pets
- GetApp
- ControlPoint
- FiberManualRecordRounded
- Flag
- FileCopyOutlined
- ExitToAppOutlined
- OpenInNew
- CheckCircleOutlined
- CancelOutlined
- PauseCircleOutline
- RemoveCircleOutline
- PlayCircleOutlineOutlined
- ArrowDownwardOutlined
- Brightness7
- OpenInNewSharp
- FilterCenterFocusSharp
- Web
- CheckRounded
- DeleteRounded
- FileCopyRounded
- MoreVertRounded
- SendRounded
- Cached
- CalendarToday
- FlashOn
- PictureAsPdf
- GridOn
- ArrowBackRounded
- PersonAddRounded
- KeyboardArrowUpRounded
- KeyboardArrowDownRounded
- KeyboardArrowLeftRounded
- KeyboardArrowRightRounded
- IndeterminateCheckBoxRounded
- FilterList
- Subject
- ExitToAppRounded
- CachedRounded
- FaceRounded
- Language
- SvgIconComponent
- MoreHoriz
- YouTube
- RestorePage
- NoteAdd
- ArrowBackIos
- Equalizer
- ImportExportRounded
- CloudDownloadRounded
- HelpOutlineRounded
- Star
- Business
- HouseOutlined
- ArrowRight
- ErrorOutline
- Lock
- FavoriteBorder
- MeetingRoom
- Mic
- MicOff
- Videocam
- VideocamOff
- VolumeOff
- ScreenShare
- Receipt
- Title
- ViewComfy
- ViewCompact
- FiberManualRecord
- RadioButtonUnchecked
Other Related APIs
- react#useState
- react#ReactElement
- react-router#useNavigate
- @material-ui/core#Typography
- @material-ui/core#Tooltip
- @material-ui/core#List
- @material-ui/core#ListItem
- @material-ui/core#IconButton
- @material-ui/core#Divider
- @material-ui/core#Drawer
- @material-ui/core#Grid
- @material-ui/core/styles#makeStyles
- @material-ui/core/styles#createStyles
- @material-ui/core/styles#Theme
- @material-ui/icons#ArrowForward
- react-feather#BookOpen
- react-feather#FileText
- react-feather#Bookmark
- react-feather#Briefcase
- react-feather#DollarSign
- react-feather#Gift
@material-ui/icons#OpenInNewSharp TypeScript Examples
The following examples show how to use
@material-ui/icons#OpenInNewSharp.
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: ExpandableListItemLink.tsx From bee-dashboard with BSD 3-Clause "New" or "Revised" License | 5 votes |
export default function ExpandableListItemLink({
label,
value,
link,
navigationType = 'NEW_WINDOW',
allowClipboard = true,
}: Props): ReactElement | null {
const classes = useStyles()
const [copied, setCopied] = useState(false)
const navigate = useNavigate()
const tooltipClickHandler = () => setCopied(true)
const tooltipCloseHandler = () => setCopied(false)
const displayValue = value.length > 22 ? value.slice(0, 19) + '...' : value
function onNavigation() {
if (navigationType === 'NEW_WINDOW') {
window.open(link || value)
} else {
navigate(link || value)
}
}
return (
<ListItem className={classes.header}>
<Grid container direction="column" justifyContent="space-between" alignItems="stretch">
<Grid container direction="row" justifyContent="space-between" alignItems="center">
{label && <Typography variant="body1">{label}</Typography>}
<Typography variant="body2">
<div>
{allowClipboard && (
<span className={classes.copyValue}>
<Tooltip title={copied ? 'Copied' : 'Copy'} placement="top" arrow onClose={tooltipCloseHandler}>
<CopyToClipboard text={value}>
<span onClick={tooltipClickHandler}>{displayValue}</span>
</CopyToClipboard>
</Tooltip>
</span>
)}
{!allowClipboard && <span onClick={onNavigation}>{displayValue}</span>}
<IconButton size="small" className={classes.openLinkIcon}>
{navigationType === 'NEW_WINDOW' && <OpenInNewSharp onClick={onNavigation} strokeWidth={1} />}
{navigationType === 'HISTORY_PUSH' && <ArrowForward onClick={onNavigation} strokeWidth={1} />}
</IconButton>
</div>
</Typography>
</Grid>
</Grid>
</ListItem>
)
}
Example #2
Source File: SideBar.tsx From bee-dashboard with BSD 3-Clause "New" or "Revised" License | 5 votes |
export default function SideBar(): ReactElement {
const classes = useStyles()
return (
<Drawer className={classes.drawer} variant="permanent" anchor="left" classes={{ paper: classes.drawerPaper }}>
<Grid container direction="column" justifyContent="space-between" className={classes.root}>
<Grid className={classes.logo}>
<Link to={ROUTES.INFO}>
<img alt="swarm" src={Logo} />
</Link>
</Grid>
<Grid>
<List>
{navBarItems.map(p => (
<Link to={p.path} key={p.path} className={classes.link}>
<SideBarItem
key={p.path}
iconStart={<p.icon className={classes.icon} />}
path={p.path}
label={p.label}
/>
</Link>
))}
</List>
<Divider className={classes.divider} />
<List>
<MUILink href={config.BEE_DOCS_HOST} target="_blank" className={classes.link}>
<SideBarItem
iconStart={<BookOpen className={classes.icon} />}
iconEnd={<OpenInNewSharp className={classes.iconSmall} />}
label={<span>Docs</span>}
/>
</MUILink>
</List>
</Grid>
<Grid>
<Link to={ROUTES.STATUS} className={classes.link}>
<SideBarStatus path={ROUTES.STATUS} />
</Link>
</Grid>
</Grid>
</Drawer>
)
}