What do you want to save?
Add Code snippet
New code examples
-
-
-
TypeScript 2021-11-13 19:48:22
material ui styled components with theme
import { styled, withTheme } from "@material-ui/core/styles" import Button from "@material-ui/core/Button" export const StyledButton= styled(withTheme(Button))(props => ({ background: props.theme.palette.background.paper, })) Add solution -
Javascript 2021-11-03 09:41:09
how to set height of material ui dialog react
import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(theme => ({ dialogPaper: { height : '400px' }, })); //then in your dialog <Dialog classes={{ paper : classes.dialogPaper}} > //...... Add solution -
Other 2021-11-03 00:47:10
metrial ui
npm i @material-ui/core // material icon npm i @material-ui/icons Add solution -
Other 2021-11-02 18:56:13
form react
import React from "react"; import { useForm, Controller } from "react-hook-form"; import Select from "react-select"; import Input from "@material-ui/core/Input"; import { Input as InputField } from "antd";... Add solution -
Javascript 2021-11-02 18:37:13
material ui color background
// import Box from Material-UI import Box from '@material-ui/core/Box'; // Use bgcolor to set background color in box <Box bgcolor="primary.main" /> <Box bgcolor="secondary.main" /> <Box bgcolor="error.main" /... Add solution -
Javascript 2021-11-02 15:04:07
themein material ui
import { createMuiTheme } from '@material-ui/core/styles'; import purple from '@material-ui/core/colors/purple'; import green from '@material-ui/core/colors/green'; const theme = createMuiTheme({ palette: { primary: purple, secondary: green, ... Add solution