Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Routing
UI
FieldFormatter
FieldWidget
getFormatterForField
InputProps
UiProvider
useUi
Formatters
BooleanFormatter
CharFormatter
ChoiceFormatter
DateFormatter
DateTimeFormatter
ImageFormatter
JsonFormatter
LinkFormatter
NumberFormatter
RangeFormatter
TimeFormatter
UI ANTD
Util
On this page
Usage
Props
Examples
Basic usage
FieldFormatter
Source
import { FieldFormatter } from "@prestojs/ui";
FieldFormatter
<
FieldValueT
,
ParsableValueT
,
SingleValueT
>
(
props
)
Source
Component Props:
Prop
Type
Description
*
props
An object with the properties below
*
props.field
Field
props.value
any
Examples
Javascript
Typescript
Basic usage
Show Code