Skip to content
Discussion options

You must be logged in to vote

Hi @GYavicoli,

Here's one way you can do it:

import CloudUploadIcon from '@mui/icons-material/CloudUpload'
import {define} from '@react-form-builder/core'

const MuiCloudUploadIcon = () => {
  return <CloudUploadIcon/>
}

export const muiCloudUploadIcon = define(MuiCloudUploadIcon, 'MuiCloudUploadIcon')
{
  "form": {
    "key": "Screen",
    "type": "Screen",
    "children": [
      {
        "key": "muiButton1",
        "type": "MuiButton",
        "children": [
          {
            "key": "muiCloudUploadIcon1",
            "type": "MuiCloudUploadIcon",
            "slot": "startIcon"
          }
        ]
      }
    ]
  }
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GYavicoli
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants