Skip to content
Discussion options

You must be logged in to vote

That does sound like a good idea, but no, the tooltips aren't dynamic like that. I think what I'd probably recommend is wrapping the default fieldSelector component (ValueSelector) like below.

Working sandbox here: https://codesandbox.io/p/devbox/jg7tg4?file=%2Fsrc%2FApp.tsx%3A36%2C1-45%2C1

const FieldSelector = (props: FieldSelectorProps) => (
  <ValueSelector
    {...props}
    title={
      (getOption(props.schema.fields, props.value!)?.description as string) ??
      props.title
    }
  />
);

The answer is really the same to your other question, too: Override the component and render whatever you need.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adriane-slalom
Comment options

Answer selected by adriane-slalom
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