material-ui

Trying to add linear gradient to a martialUI icon

空扰寡人 提交于 2021-02-11 14:22:34
问题 I'm trying to add a linear gradient to a material UI icon using the background-clip property but it just doesn't show up? .social-icon{ background: linear-gradient(to right bottom, #FD297B, #FF5864, #FF655B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } ''' <div className="social-icons"> <FacebookIcon className="social-icon" fontSize="large" /> <TwitterIcon className="social-icon" fontSize="large" /> <InstagramIcon className="social-icon" fontSize="large" />

customizing the expansionpanel in material ui and overwriting the styles

我与影子孤独终老i 提交于 2021-02-11 14:00:16
问题 I want to customize the expansionpanel in material ui.I see that the data i want to render on expansion panel takes too much space because of the default styling of the expansion panel. <ExpansionPanel defaultExpanded={isCurrentInning}> <ExpansionPanelSummary classes={{ expanded:classes.expandedPanel }} expandIcon={<ExpandMoreIcon className="label"/>}> <div className={classes.inningInfoContainer}> <div className={classes.teamNameOrderContainer}> <span className="label"> <img src={image} width

customizing the expansionpanel in material ui and overwriting the styles

做~自己de王妃 提交于 2021-02-11 13:57:26
问题 I want to customize the expansionpanel in material ui.I see that the data i want to render on expansion panel takes too much space because of the default styling of the expansion panel. <ExpansionPanel defaultExpanded={isCurrentInning}> <ExpansionPanelSummary classes={{ expanded:classes.expandedPanel }} expandIcon={<ExpandMoreIcon className="label"/>}> <div className={classes.inningInfoContainer}> <div className={classes.teamNameOrderContainer}> <span className="label"> <img src={image} width

React-router route won't trigger

我是研究僧i 提交于 2021-02-11 12:50:45
问题 First, i am sorry if this problem has been asked before. I am currently new to react-router, i don't know what to ask. So, i am trying to make a sidebar component in my apps, this sidebar composed of material-ui drawer, listItems. Each listItem has a link i put as its containerElement attribute value. Selecting each list does change the url, but component that each route should display won't show. Here is my code: App.js import React, { Component } from 'react' import MuiThemeProvider from

React-router route won't trigger

会有一股神秘感。 提交于 2021-02-11 12:50:17
问题 First, i am sorry if this problem has been asked before. I am currently new to react-router, i don't know what to ask. So, i am trying to make a sidebar component in my apps, this sidebar composed of material-ui drawer, listItems. Each listItem has a link i put as its containerElement attribute value. Selecting each list does change the url, but component that each route should display won't show. Here is my code: App.js import React, { Component } from 'react' import MuiThemeProvider from

Redux Form Material UI: Select with Nested Lists not working

…衆ロ難τιáo~ 提交于 2021-02-11 11:47:56
问题 I have a situation where I need to show grouped lists of items: https://v0.material-ui.com/#/components/list (Go to Nested Lists) Can redux-form Select field work with options as <ListItem /> instead of <MenuItem /> ? I can't select any item from the nested dropdown. Redux's onChange callback doesn't fire up. Here is the code: Form: <form> <Field name="camops" normalize={normalizeMultipleSelectValues} component={MySelectFormField} floatingLabelText="Item(s)" fullWidth multiple /> </form>

Redux Form Material UI: Select with Nested Lists not working

笑着哭i 提交于 2021-02-11 11:47:25
问题 I have a situation where I need to show grouped lists of items: https://v0.material-ui.com/#/components/list (Go to Nested Lists) Can redux-form Select field work with options as <ListItem /> instead of <MenuItem /> ? I can't select any item from the nested dropdown. Redux's onChange callback doesn't fire up. Here is the code: Form: <form> <Field name="camops" normalize={normalizeMultipleSelectValues} component={MySelectFormField} floatingLabelText="Item(s)" fullWidth multiple /> </form>

Custom IconComponent in MuiSelect

放肆的年华 提交于 2021-02-11 08:42:26
问题 Is it possible to change the default IconComponent="ArrowDropDownIcon" to CustomIcon using props in createMuiTheme ? I would like to get something like this: const theme = createMuiTheme({ ... props: { MuiSelect: { IconComponent: "CustomIcon", }, }, ... }); 回答1: Below is an example showing three different icons for the Select . The first is the default, the second is explicitly overridden using the prop, and the third leverages the default icon prop override specified in a custom theme. The

React - My form is submitting empty data because 'e' and 'data' are declared but never used?

房东的猫 提交于 2021-02-11 06:30:12
问题 I'm trying to implement a form using react-hook-form. I'm not able to actually connect the data and event working correctly. As the docs state, I'm using the handleSubmit function from the react-hook-form library, with my custom Axios post as the onSubmit parameter: onSubmit={handleSubmit(onSubmit) According to my Vscode, the data and event are not registering correctly const onSubmit = (data, e) => {} . When the form is submitted, the web console logs an empty form: {email: "", password: ""}

How do I center a Fab inside a circular progress?

廉价感情. 提交于 2021-02-10 18:25:28
问题 I am trying to center an fab inside the circular progress bar. I was told I could use relative position for the parent and the children have absolute position. I would like to keep it responsive so if the screen is scaled down it will look the same. These are both Material UI components. <div className="event-dialog-header"> <DialogTitle id="form-dialog-title">Event Details</DialogTitle> <div className="event-dialog-delete"> { props.selectedEvent && <Fab aria-label="delete" size="small"