-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
featureIs a feature requestIs a feature requestneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned
Description
Prerequisites
- I have read the documentation
What theme are you using?
antd
Is your feature request related to a problem? Please describe.
Hey there!
I need to use a custom widget to build part of the form, and I want to control the types based on the props.value. Is there any way to do that?

Describe the solution you'd like
No response
Describe alternatives you've considered
I see it as a generic type usage that could be passed like this
type ComponentProps = WidgetProps<CustomType, StrictRJSFSchema, {}>;
const Component = (props: ComponentProps) => {
const { value } = props;
// value type will be **CustomType**
Metadata
Metadata
Assignees
Labels
featureIs a feature requestIs a feature requestneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned