boolean
Typetype BooleanField = {label: stringname: stringtype: 'boolean'list?: boolean// See https://tina.io/docs/extending-tina/overview/ for customizing the UIui?: {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'}
© TinaCMS 2019–2024