@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
@material-ui/icons#SearchOutlined TypeScript Examples
The following examples show how to use
@material-ui/icons#SearchOutlined.
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: SearchBar.tsx From crossfeed with Creative Commons Zero v1.0 Universal | 5 votes |
SearchBar = React.forwardRef<HTMLInputElement, Props>(
(props, ref) => {
const {
initialValue,
className,
placeholder,
autocompletedResults,
onSelectResult,
onChange,
...rest
} = props;
const [hasFocus, setHasFocus] = useState(false);
const [focusTimer, setFocusTimer] = useState<Timer>();
const [query, setQuery] = useState<string>(initialValue);
const classes = useStyles({ inpFocused: hasFocus });
const { value } = props;
useEffect(() => {
setQuery(value?.toString() ?? '');
}, [value]);
const handleFocus = () => {
clearTimeout(focusTimer as Timer);
setHasFocus(true);
};
const handleBlur = () => {
setFocusTimer(setTimeout(() => setHasFocus(false), 100));
};
return (
<div className={classes.wrapper}>
<div className={classes.inner}>
<SearchOutlined className={classes.icon} />
<form
onSubmit={(e) => {
e.preventDefault();
onChange(query);
}}
>
<input
{...rest}
onFocus={handleFocus}
onBlur={handleBlur}
className={clsx(classes.inp, className)}
placeholder={placeholder ?? defaultPlaceholder}
value={query}
onChange={(e) => setQuery(e.target.value)}
ref={ref}
/>
</form>
{autocompletedResults &&
onSelectResult &&
autocompletedResults.length > 0 &&
hasFocus && (
<Paper classes={{ root: classes.autocompleteRoot }}>
<List>
{autocompletedResults.map((result) => (
<ListItem
onFocus={handleFocus}
onBlur={handleBlur}
button
key={result.id.raw}
onClick={() => {
onSelectResult(result.id.raw);
onChange(result.text.raw);
}}
>
{result.text.raw}
</ListItem>
))}
</List>
</Paper>
)}
</div>
</div>
);
}
)
Example #2
Source File: Searchbar.tsx From homebase-app with MIT License | 5 votes |
SearchIcon = styled(SearchOutlined)({ marginRight: 5, })