@mui/icons-material APIs
- Close
- Add
- Delete
- ExpandMore
- Settings
- Check
- Update
- GitHub
- MoreVert
- HelpOutline
- ChevronRight
- ExpandLess
- Menu
- FileCopy
- CheckBox
- CheckBoxOutlineBlank
- ArrowBack
- DeleteForever
- Visibility
- VisibilityOff
- Save
- Person
- Edit
- People
- ChevronLeft
- PlayArrow
- Home
- ExitToApp
- MoreHoriz
- WbSunny
- Download
- Upload
- Search
- HighlightOffOutlined
- ContentCopy
- Calculate
- ShoppingCart
- AccountBalance
- BarChart
- Paid
- Clear
- Cancel
- ArrowDownward
- ArrowUpward
- PhotoCamera
- Folder
- InfoOutlined
- Code
- KeyboardArrowDown
- Lock
- LockOpen
- Replay
- Favorite
- Build
- Refresh
- AssignmentInd
- Pets
- Public
- Group
- Brush
- KeyboardTab
- Phone
- HelpOutlineOutlined
- NetworkWifi
- CompareArrows
- AdminPanelSettings
- BugReport
- Logout
- Message
- AddCircle
- LockOutlined
- HomeOutlined
- BarChartOutlined
- MusicNote
- MusicNoteOutlined
- Album
- AlbumOutlined
- PersonOutlined
- SettingsOutlined
- Share
- ShareOutlined
- FastRewind
- Help
- Loop
- VolumeDown
- VolumeUp
- PauseCircle
- PlayCircle
- VolumeOff
- ChatBubbleOutline
- LockRounded
- WifiOffRounded
- VideocamOutlined
- AddRounded
- MoreVertRounded
- SyncProblem
- VideoCallOutlined
- GetAppRounded
- SaveAlt
- ErrorRounded
- InsertDriveFileRounded
- CheckCircleOutline
- CloudOff
- ClearAll
- CloseOutlined
- Link
- AttachmentOutlined
- CodeOutlined
- MailOutlineRounded
- Brightness7Rounded
- MenuRounded
- NightsStayRounded
- ArrowForward
- BrushRounded
- VisibilityRounded
- FileCopyRounded
- FavoriteRounded
- DesktopMacRounded
- PhoneAndroidRounded
- TabletMac
- ThumbUpOutlined
- ThumbDownOutlined
- AssistantPhotoOutlined
- Publish
- Create
- WbCloudy
- Computer
- KeyboardArrowUp
- BusinessCenter
- FavoriteBorder
- Groups
- Shuffle
- Difference
- SwapHoriz
- Info
- KeyboardDoubleArrowDown
- KeyboardDoubleArrowUp
- PersonAdd
- Checkroom
- FactCheck
- ArrowRightAlt
- Scanner
- Brightness4
- Brightness7
- Translate
- Backpack
- SettingsBrightness
- Equalizer
- Handyman
- SentimentVerySatisfied
- SentimentDissatisfied
- SentimentSatisfied
- AccessTime
- Remove
- ArrowDropDown
- ArrowRight
- Undo
- Redo
- CreateNewFolder
- Description
- Outbox
- Inbox
- DriveFileRenameOutline
- ContentPaste
- Block
- Star
- StarBorder
- Security
- Today
- Event
- Login
- Sick
- FaceRetouchingOff
- Fireplace
- ErrorOutline
- Stop
- ViewList
- Send
- PlayCircleFilledWhite
- PlaylistAddCheck
- Telegram
- VerifiedUser
- Notifications
- MenuOpen
- GppGood
- ContactPhone
- Payment
- FolderShared
- Class
- Shield
- MoveUp
- VolunteerActivism
- DisplaySettings
- Apartment
- BusAlert
- Category
- FilterNone
- Forest
- MedicalServices
- School
- SportsTennis
- TheaterComedy
- ReportGmailerrorred
- ArrowCircleUp
- UploadFile
- YouTube
- Web
- AccountCircle
- AccessibilityNew
- Chat
- FolderOpen
- FileCopyOutlined
- KeyboardBackspace
- CheckCircleOutlined
- ReportProblemOutlined
- ManageAccounts
- PhotoLibrary
- SettingsBackupRestore
- SupervisorAccount
- Api
- FeaturedPlayList
- BugReportOutlined
- NewReleases
- ColorLens
- FolderOutlined
- Apps
- SpeakerNotes
- LocalCafe
- BurstModeSharp
- DevicesOther
- VideoLibrary
- AddOutlined
- DeleteOutlineOutlined
- EditOutlined
- MoreHorizOutlined
- Bookmarks
- CopyAll
- InsertComment
- KeyboardArrowRight
- FileDownload
- Done
- PendingOutlined
- HelpOutlineRounded
- ReportProblem
- HelpOutlined
Other Related APIs
- react#useCallback
- react#Suspense
- date-fns#formatDistance
- @mui/material#Box
- @mui/material#Button
- @mui/material#IconButton
- @mui/material#Container
- @mui/material#Typography
- @mui/material#ListItemIcon
- @mui/material#Menu
- @mui/material#MenuItem
- @mui/material#Skeleton
- @mui/material#Grid
- @mui/material#Avatar
- @mui/material#Drawer
- @mui/material#ButtonProps
- @mui/icons-material#MoreVert
- @mui/icons-material#ThumbUpOutlined
- @mui/icons-material#ThumbDownOutlined
- @mui/icons-material#AssistantPhotoOutlined
- mobx-react-lite#observer
@mui/icons-material#KeyboardArrowDown TypeScript Examples
The following examples show how to use
@mui/icons-material#KeyboardArrowDown.
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: DropdownButton.tsx From genshin-optimizer with MIT License | 5 votes |
export default function DropdownButton({ title, children, id = "dropdownbtn", ...props }: DropdownButtonProps) {
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const open = Boolean(anchorEl);
const handleClick = useCallback(
(event: React.MouseEvent<HTMLButtonElement>) => setAnchorEl(event.currentTarget),
[setAnchorEl],
)
const handleClose = useCallback(
() => setAnchorEl(null),
[setAnchorEl],
)
return <Suspense fallback={<Button endIcon={<KeyboardArrowDown />}{...props}><Skeleton width={50} /></Button>} >
<Button
{...props}
id={id}
aria-controls="basic-menu"
aria-haspopup="true"
aria-expanded={open ? 'true' : undefined}
onClick={handleClick}
endIcon={<KeyboardArrowDown />}
>
{title}
</Button>
<Menu
id="basic-menu"
anchorEl={anchorEl}
open={open}
onClose={handleClose}
MenuListProps={{
'aria-labelledby': id,
}}
onClick={handleClose}
>
{/* set Skeleton to be really high so the taller dropdowns can still be placed properly... */}
<Suspense fallback={<Skeleton width="100%" height="1000" />}>
{children}
</Suspense>
</Menu>
</Suspense>
}
Example #2
Source File: UseEquipped.tsx From genshin-optimizer with MIT License | 5 votes |
function SelectItem({ characterKey, rank, maxRank, setRank, onRemove, numAbove }: {
characterKey: CharacterKey,
rank: number,
maxRank: number,
setRank: (r: number | undefined) => void,
onRemove: () => void,
numAbove: number,
}) {
const { t } = useTranslation("page_character")
const { database } = useContext(DatabaseContext)
const character = useCharacter(characterKey)
if (!character) return null
const { equippedWeapon, equippedArtifacts } = character
return <CardLight sx={{ p: 1 }} >
<Box sx={{ pb: 1, display: "flex", justifyContent: "space-between", gap: 1 }}>
<SqBadge color="info">
<Typography>#{rank}</Typography>
</SqBadge>
<SqBadge sx={{ flexGrow: 1 }} color={numAbove === (rank - 1) ? "warning" : (rank - 1) < numAbove ? "error" : "success"}>
<Typography>{numAbove === (rank - 1) ? <Trans t={t} i18nKey="tabOptimize.useEquipped.modal.status.curr">Current character</Trans>
: (rank - 1) < numAbove ? <Trans t={t} i18nKey="tabOptimize.useEquipped.modal.status.dont">Don't Use artifacts</Trans> :
<Trans t={t} i18nKey="tabOptimize.useEquipped.modal.status.use">Use artifacts</Trans>}</Typography>
</SqBadge>
<Box>
<ButtonGroup sx={{ flexGrow: 1 }} size="small">
<CustomNumberInputButtonGroupWrapper >
<CustomNumberInput onChange={setRank} value={rank}
// startAdornment="Rank:"
inputProps={{ min: 1, max: maxRank, sx: { textAlign: "center" } }}
sx={{ width: "100%", height: "100%", pl: 2 }} />
</CustomNumberInputButtonGroupWrapper>
<Button disabled={rank === 1} onClick={() => setRank(1)} >
<KeyboardDoubleArrowUp />
</Button>
<Button disabled={rank === 1} onClick={() => setRank(rank - 1)} >
<KeyboardArrowUp />
</Button>
<Button disabled={rank === maxRank} onClick={() => setRank(rank + 1)} >
<KeyboardArrowDown />
</Button>
<Button disabled={rank === maxRank} onClick={() => setRank(maxRank)} >
<KeyboardDoubleArrowDown />
</Button>
<Button color="error" onClick={onRemove}>
<Close />
</Button>
</ButtonGroup>
</Box>
</Box>
<Grid container columns={7} spacing={1}>
<Grid item xs={1} >
<CharacterCardPico characterKey={characterKey} />
</Grid>
<Grid item xs={1}><WeaponCardPico weaponId={equippedWeapon} /></Grid>
{Object.entries(equippedArtifacts).map(([slotKey, aId]) => <Grid item xs={1} key={slotKey} ><ArtifactCardPico slotKey={slotKey} artifactObj={database._getArt(aId)} /></Grid>)}
</Grid>
</CardLight>
}