Skip to content

Per-page prose components #1425

@Tahul

Description

@Tahul

Would it be possible to handle per-page prose components?

Right now prose components can only be selected at top level, but I'm pretty sure being able to configure it at page-level or from content renderer would be amazing! :)

It should be finely typed so we get autocomplete on tags list.

Some usage:

// page.md
---
prose:
   a: ProseACustom
---
// Any component

// `a` would be suggested by TS
<ContentRender :prose="{ a: 'ProseACustom' }" />
// nuxt.config.ts

{
   content: {
      prose: {
         // `a` would be suggested by TS
         a: 'ProseACustom'
      }
   }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions