Skip to content

feat(studio): add UI elements for inputs (name, description, tooltip)#415

Draft
TotomInc wants to merge 1 commit intonuxt-content:mainfrom
TotomInc:feat/editor-options
Draft

feat(studio): add UI elements for inputs (name, description, tooltip)#415
TotomInc wants to merge 1 commit intonuxt-content:mainfrom
TotomInc:feat/editor-options

Conversation

@TotomInc
Copy link
Copy Markdown
Contributor

@TotomInc TotomInc commented Apr 8, 2026

Demo code, from content.config.ts:

const createDocsSchema = () => z.object({
  layout: z.string().editor({
    fieldName: 'Custom Layout',
    fieldDescription: 'Override the default layout for the page',
    tooltip: 'Read our documentation to learn more about existing layouts.',
  }).optional()
})

Nuxt Studio overview:

CleanShot 2026-04-09 at 10 49 33@2x CleanShot 2026-04-09 at 10 49 40@2x

Add new properties on z.editor() to allow customizing Nuxt Studio UI:

  • fieldName: override auto-generate input name
  • fieldDescription: text displayed between fieldName and input
  • tooltip: when defined, show a tooltip with the given content

Upstream nuxt/content: nuxt/content#3761

Fixes #400

@TotomInc TotomInc marked this pull request as draft April 8, 2026 07:14
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 8, 2026

@TotomInc is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 8, 2026

npm i https://pkg.pr.new/nuxt-studio@415

commit: 8cce5a1

@TotomInc TotomInc force-pushed the feat/editor-options branch from d398d3a to 58d9fcb Compare April 8, 2026 18:16
@TotomInc TotomInc force-pushed the feat/editor-options branch from 58d9fcb to 8cce5a1 Compare April 10, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New properties for Zod .editor() to improve content-editor UI

1 participant