Icons

Icons

Icons are now supported using the iconName property.

Setup steps

  • Install material icons with command npm install material-icons
  • Import css file from material-icons to a globally used stylesheet with @import 'material-icons/iconfont/material-icons.css';

Basic example

Schema details

{
fields
:
[
0
:
{
name
:
"basic-details"
meta
:
{
type
:
"section"
displayName
:
"Basic Details"
}
fields
:
[
[
…
]
[
…
]
]
}
1
:
{
name
:
"address-details"
meta
:
{
type
:
"section"
displayName
:
"Address Details"
}
fields
:
[
[
…
]
[
…
]
[
…
]
]
}
2
:
{
name
:
"doc-details"
meta
:
{
type
:
"section"
displayName
:
"Document Details"
}
fields
:
[
0
:
{
name
:
"aadhaar"
meta
:
{
…
}
}
1
:
{
name
:
"aadhaar-card"
meta
:
{
…
}
}
]
}
]
}

Reference

Star us at github

© Copyright 2023 MuiForms