Skip to main content

useFieldConfig

Hook that returns the field configuration. This basically translates to the corresponding field from the mobro-widget-config.json.

Returns

The corresponding field as configured via the field configuration.

Example

src/widgets/example/Example.tsx
import React from 'react'
import {useFieldConfig} from '@modbros/dashboard-sdk'

export default function Example() {
const fieldConfig = useFieldConfig({ field: 'my_field' })

return null
}