number
typetype NumberField = {label: stringname: stringtype: 'number'/** See https://tina.io/docs/extending-tina/overview/ for customizing the UI **/list?: booleanui?: {label?: stringdescription?: stringcomponent?: FC<any> | string | nullparse?: (value: number | number[], name: string, field: F) => anyformat?: (value: number | number[], name: string, field: F) => anyvalidate?(// number or number[] depends on list true or falsevalue: number | number[],allValues: any,meta: any,field: UIField<F, Shape>): string | undefined | void}}
Tina will generate the appropriate component depending on the configuration provided.
{type: 'number',name: 'count',label: 'Count',description:'An example number field.'}
Last Edited: September 11, 2024
Product
Resources
© TinaCMS 2019–2024