@material-ui/icons APIs
- ExpandMore
- Delete
- Close
- Visibility
- VisibilityOff
- Check
- Add
- Edit
- Search
- ExpandLess
- Settings
- Person
- Info
- Clear
- ExitToApp
- ArrowDropDown
- Home
- GitHub
- Warning
- ArrowBack
- SearchOutlined
- Done
- LocationOn
- PlayArrow
- Apps
- Brightness4
- Brightness7
- Description
- KeyboardArrowDown
- KeyboardArrowLeft
- KeyboardArrowRight
- MoreVert
- LocationCity
- Map
- Image
- AccountCircle
- InfoOutlined
- Create
- Block
- Replay
- AddCircle
- HomeRounded
- GetApp
- ChevronLeft
- ChevronRight
- CloudDownload
- CheckCircleOutline
- Send
- LockOpen
- Cancel
- NavigateNext
- AccountBox
- DragIndicator
- FavoriteBorderOutlined
- AccessTime
- DoneAll
- CheckCircle
- CropFree
- LockOutlined
- Undo
- Dashboard
- People
- PhotoLibrary
- HomeOutlined
- Group
- ArrowDropUp
- Remove
- ArrowUpward
- Save
- ArrowForward
- AttachFile
- Headset
- SignalCellularAlt
- ArrowForwardIos
- PlayCircleFilled
- AccessAlarm
- Adjust
- BarChart
- CloseRounded
- PlayArrowOutlined
- ImageRounded
- MenuBookRounded
- RefreshRounded
- HourglassEmptyOutlined
- Announcement
- Ballot
- QuestionAnswerOutlined
- CloudUpload
- SkipNext
- ArrowRightAlt
- MoreHoriz
- FileCopy
- MenuBook
- Language
- AlternateEmail
- FolderOpen
- Lock
- Pets
- AddCircleRounded
- ExploreRounded
- WbSunnyRounded
- Brightness2Rounded
- DonutLargeRounded
- AssistantRounded
- AccountCircleRounded
- ExitToAppRounded
- VpnKey
- MailOutline
- Smartphone
- DeleteForever
- LanguageOutlined
- Colorize
- SignalCellularConnectedNoInternet2Bar
- SignalCellularConnectedNoInternet0Bar
- SignalCellular4Bar
- DeleteOutline
- NewReleases
- LocalOffer
- Assessment
- Place
- TrendingDown
- ShoppingCart
- Stop
- RotateLeft
- Menu
- Flag
- Forum
- GroupSharp
- InsertEmoticon
- NotificationsActive
- PhoneIphone
- AllInbox
- Comment
- Photo
- PlaylistAddCheck
- CloudUploadRounded
- ExpandMoreOutlined
- History
- PersonOutlineOutlined
- ArrowForwardIosRounded
- ArrowBackIosRounded
- AssignmentOutlined
- VerticalAlignCenterOutlined
- CalendarTodayOutlined
- Error
- PlaylistPlay
- MusicNoteTwoTone
- Portrait
- ExploreOutlined
- DeleteRounded
- EditRounded
- SaveRounded
- CreateNewFolder
- MeetingRoom
- MenuOpenRounded
- MenuRounded
- DateRange
- CallEnd
- Assignment
- KeyboardBackspace
- BluetoothSearching
- CameraAlt
- PlaylistAdd
- Favorite
- Bluetooth
- OpenInBrowser
- Loop
- FileCopyOutlined
- NavigateBefore
- MergeType
- Dvr
- PersonOutline
- PlayCircleFilledWhiteOutlined
- StoreMallDirectoryOutlined
- SupervisedUserCircleOutlined
- MonetizationOn
- OpenInNew
- ArrowDownward
- AddBox
- FilterList
- FirstPage
- LastPage
- ViewColumn
- Notifications
- DriveEta
- LocalTaxi
- Redo
- AccountTree
- TextFields
- SaveAlt
- ThumbDown
- ThumbUp
- LocalPhone
- VolumeUp
- VolumeDown
- Translate
- AddCircleOutlined
- RemoveCircleOutlined
- Router
- RemoveRedEye
- Chat
- Mood
- Mic
OtherRelated APIs
@material-ui/icons#MusicNoteTwoTone JavaScript Examples
The following examples show how to use
@material-ui/icons#MusicNoteTwoTone.
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: AddMusic.jsx From soundly with MIT License | 5 votes |
function AddMusic() {
const useStyle = useContext(ThemeContext);
const fileRef = useRef();
const [selected,setSelected] = useState(null);
const selectImg = () =>{
fileRef.current.click()
}
useEffect(()=>{
fileRef.current.onchange = (e) => {
setSelected(e.target.files[0].name)
}
})
let id =musicDB[musicDB.length-1].id + 1;
return (
<form style={useStyle.component} className={"AddMusic"}>
<div className="add-music-sub-container">
<div className="d1">
<Button onClick={selectImg} style={{backgroundColor: useStyle.subTheme,width:"200px",height:"200px"}} variant={"contained"} >
<Image titleAccess={"Select a music cover"} style={{color:"#f0f0f0",width:"150px",height:"150px"}}/>
</Button>
<input ref={fileRef} accept="image/*" type="file" hidden id={"music-img"}/>
<p>{selected}</p>
<Button htmlFor={"music-img"} onClick={selectImg} style={{backgroundColor: useStyle.subTheme,width:"200px",height:"200px"}} variant={"contained"} >
<MusicNoteTwoTone titleAccess={"Select a music"} style={{color:"#f0f0f0",width:"150px",height:"150px"}}/>
</Button>
<input accept="audio/*" hidden type="file"/>
<select>
<option value="0">Select Language</option>
<option value="1">Hindi</option>
<option value="2">English</option>
</select>
</div>
<div className="d2">
<div>
<input type="text" value={"ID: "+id} disabled/>
<input type="text" placeholder={"CurrentPlayingLarge Name"} id={"name"}/>
<input type="text" placeholder={"Singer Name"} id={"artist"}/>
<Button style={{backgroundColor: useStyle.theme}} variant={"contained"} endIcon={<Add/>}>
Add
</Button>
</div>
<div className={"preview"}>
<h3>Preview</h3>
<p>Music Cover : {selected}</p>
<p>Music Image : {selected}</p>
<p>Music Name : {selected}</p>
<p>Singer Name : {selected}</p>
<p>Language : {selected}</p>
</div>
</div>
</div>
</form>
);
}