Is your feature request related to a problem? Please describe
Zod schemas can be technical and confusing for content-editors.
Given this schema:
const linkSchema = z.object({
label: z.string(),
link: z.string(),
});
const topbarSchema = z.object({
lowPowerMode: z.object({ label: z.string() }),
darkMode: z.object({ label: z.string() }),
accessibility: z.object({ label: z.string() }),
});
export const headerSchema = z.object({
navigationItems: z.array(linkSchema),
contact: linkSchema,
search: z.object({ label: z.string() }),
topbar: topbarSchema,
});
Some parts in the content-editor UI will be displayed as LowPowerMode or doesn't make sense for content-editors.
Describe the solution you'd like
Add new properties to z.editor() which improves the UI for content-editors:
Describe alternatives you've considered
No alternatives possible.
Additional context
I will work on a PR soon for this issue!
Is your feature request related to a problem? Please describe
Zod schemas can be technical and confusing for content-editors.
Given this schema:
Some parts in the content-editor UI will be displayed as
LowPowerModeor doesn't make sense for content-editors.Describe the solution you'd like
Add new properties to
z.editor()which improves the UI for content-editors:name: override displayed name of a property.tooltip: when defined, display an info icon next to the field name. When hovered, a Nuxt UI Tooltip appears with the given text content.description/helper: display text between field name and input, similar to Nuxt UIFormFielddescriptionprop.Describe alternatives you've considered
No alternatives possible.
Additional context
I will work on a PR soon for this issue!