Skip to content

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

Open
TotomInc wants to merge 5 commits into
nuxt-content:mainfrom
TotomInc:feat/editor-options
Open

feat(studio): add UI elements for inputs (name, description, tooltip)#415
TotomInc wants to merge 5 commits into
nuxt-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: ccabbe7

@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
@TotomInc
Copy link
Copy Markdown
Contributor Author

Upstream branch at nuxt/content has been merged.

Need to wait for a version publish, so I can bump the version on this PR to a stable release.

Copy link
Copy Markdown
Contributor

@larbish larbish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just waiting for next Nuxt Content release

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
content-studio Ready Ready Preview, Comment Apr 28, 2026 0:27am
nuxt.studio Ready Ready Preview Apr 28, 2026 0:27am

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

2 participants