Skip to content
New issue

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

[FEATURE] Please exported out all Select Interface #70

Closed
fransiscushermanto opened this issue Mar 12, 2022 · 6 comments
Closed

[FEATURE] Please exported out all Select Interface #70

fransiscushermanto opened this issue Mar 12, 2022 · 6 comments
Assignees
Labels
Feature Request A new feature requested for the package

Comments

@fransiscushermanto
Copy link

fransiscushermanto commented Mar 12, 2022

Describe the solution you'd like
I want to create custom component in my project with this chakra-react-select. I need the interface for all Select props so i can make it become a component. I need it as soon as possible. Thanks!

@fransiscushermanto fransiscushermanto added the Feature Request A new feature requested for the package label Mar 12, 2022
@fransiscushermanto fransiscushermanto changed the title [FEATURE] Please exported out all Select Typing [FEATURE] Please exported out all Select Interface Mar 12, 2022
@csandman
Copy link
Owner

These should all be available already! All of the original interfaces that are available in react select and being exported from this package as well, and I exported the component types in the most recently published version. If you have any questions about what certain interfaces are called, let me know, and I can elaborate tomorrow.

@csandman
Copy link
Owner

You can check out the most recent version notes here: https://github.com/csandman/chakra-react-select/releases/tag/v3.1.1

@fransiscushermanto
Copy link
Author

@csandman I think it's still to hard, I think it will be as simple as chakra select props. As you can see i need to do exactly the same like what you do to make the interface. Maybe you can simplify the SelectProps?
image

@csandman
Copy link
Owner

Sorry, there's not much I can do to change it. All of the interface structures Im using are based on the original structures of react-select. Each of the sub-components are expecting that structure, and it doesn't work if I don't follow it exactly.

@fransiscushermanto
Copy link
Author

@csandman Oh i see, okay then.

@csandman
Copy link
Owner

And if you need any explanations for the original interfaces with the generics, check out the TypeScript sections of the react-select docs: https://react-select.com/typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A new feature requested for the package
Projects
None yet
Development

No branches or pull requests

2 participants