This is an advanced-use feature, and likely not something you'll need to configure. What you probably want is the content types reference!
The number
field represents a number input.
interface NumberConfig extends FieldConfig {component: 'number'name: stringlabel?: stringdescription?: stringstep?: string | number}
This interfaces only shows the keys unique to the number field. Visit the Field Config docs for a complete list of options.
Below is an example of how a number
field could be used to edit a weight
value used for sorting blog posts.
const BlogPostForm = {fields: [{component: 'number',name: 'weight',label: 'Weight',description: 'Enter a weight for post sorting',step: 1,},// ...],}
© TinaCMS 2019–2024