keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

allow inline mdx fields in custom content components

Open stefanprobst opened this issue 8 months ago • 0 comments

it would be very cool if the following schema was supported:

content: fields.mdx({
  label: "Content",
  components: {
    Widget: wrapper({
      label: "Widget",
      schema: {
        title: fields.text({
          label: "Title",
        }),
        summary: fields.mdx.inline({
          label: "Summary",
        }),
      },
    }),
  },
}),

stefanprobst avatar Feb 20 '25 06:02 stefanprobst