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