We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@carbon/react
No response
V1.57.0
V18.3.0
The selectProps interface of the <Select> component is not exported.
selectProps
<Select>
This means that to wrap the component with third-party libs (Formik for example) we need to redeclare the interface.
Create a tsx component that wraps a <Select> component
export function SelectField({ id, ...props }: MyFieldProps<SelectProps>) { // <- can't Access SelectProps return ( <Field name={[props.name](http://props.name/)}> {({ field, meta }: FieldProps) => ( <Select invalidText={meta.error} {...field} {...props} /> )} </Field> ); }
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
The text was updated successfully, but these errors were encountered:
💯
Sorry, something went wrong.
Out of abundance of explicitness ... please do make sure other xxxProps interfaces are exported too.
xxxProps
guidari
Successfully merging a pull request may close this issue.
Package
@carbon/react
Browser
No response
Package version
V1.57.0
React version
V18.3.0
Description
The
selectProps
interface of the<Select>
component is not exported.This means that to wrap the component with third-party libs (Formik for example) we need to redeclare the interface.
Reproduction/example
Create a tsx component that wraps a
<Select>
componentSteps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: