useUi
Sourceimport { useUi } from "@prestojs/ui";
useUi()
Returns getWidgetForField and getFormatterForField methods provided by UiProvider
Returns
Key | Type | Description |
---|---|---|
formComponent | string|React.ComponentType | |
formItemComponent | React.ComponentType | |
getFormatterForField | Function | |
getWidgetForField | Function |