Skip to content

JSX support for schema #1082

Answered by radekmie
possumop asked this question in Q&A
Dec 31, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @possumop, sorry for the late response. I believe you're using the AntD or Bootstrap theme, right? If so, you can pass the help prop, as well as any other, through the uniforms property. Like this:

const schema = {
  title: "Person",
  type: "object",
  properties: {
    firstName: { type: "string", uniforms: { help: <a href="#">click here</a> } },
    lastName: { type: "string" },
  },
  required: ["firstName", "lastName"],
};

Keep in mind it won't work in our playground, but it will in your project.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@possumop
Comment options

@radekmie
Comment options

Answer selected by radekmie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants