how to use fluent ui in json column formattor code example
Example: how to use fluent ui in json column formattor
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"attributes": {
"class": "sp-field-severity--good"
},
"children": [
{
"elmType": "span",
"style": {
"display": "inline-block",
"padding": "12px 4px"
},
"attributes": {
"iconName": "MapPin"
}
},
{
"elmType": "span",
"txtContent": "@currentField"
}
]
}