-
Notifications
You must be signed in to change notification settings - Fork 932
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
Help make examples #1
Comments
will work on the basic example |
I'll start with an Apollo example |
What would be amazing would be to basically recreate a component that simulates their API using react-autocompletely, then to copy their examples directly if possible. |
I could work on a Spectre.css example. Or would we strictly be sticking with JS/React autocomplete implementations? (the Spectre component is CSS-only) |
That would be amazing! Let's do it! |
How do you feel about a Dropdown as well as a Select? Maybe even a name change could help open up more possibilities? I feel like there is a lot of other potential here. Here are some examples I started sketching out. Let me know what you think and I would be happy to submit a PR. This may be jumping the gun.. but what if this repo had a |
Happy to entertain a name change in another issue. You're right, maybe we should user lerna here. I've never used it before, but this seems like a great use case! |
Sorry, pressed the wrong button there 😄 How do you see the react-select example? Do you mean displaying them side-by-side to compare the difference in API's? I've used react-select a lot, so that would be a nice one for me to start with. |
Ok I will do examples |
Not side-by-side. If someone wants to see them side-by-side they can open up another tab (we could even provide a link). But making that example page look identical to the react-select example page would be pretty cool. |
@nndung179,
Which example will you work on? We want to avoid people working on the same thing. |
Hi @kentcdodds I am going to make example with |
@kentcdodds cool! Will give it go this weekend. Would you be okay with giving some feedback when the first example is done so that I know that I'm going in the right direction? |
Absolutely. Thanks @Corjen! |
I can setup and example with axios and GitHub search API |
Going to get familiar with the existing code by making an example using our web API ;) |
Fantastic 🎉 |
I have just learned we recently Will come up with another example. |
Hey folks! 👋 now that we've released a beta version, it's much easier to make examples. Now you can make them right in the browser 🎉 (thank you @CompuIves!!!) So, if you've made an example already, would you mind forking this example: http://kcd.im/rac-example and updating it to your example? Then give it a good title and description and add the I'll add a link to that in the README so folks can go see all the awesome examples you all make. Thanks!!! |
If anyone has any ideas for examples but are hard pressed on time, I'd love to pick those up. |
Here are some ideas. Try reimplementing components from the following libraries:
I expect there are others... :) |
I can work on this: https://reactcommunity.org/react-autocomplete/managed-menu-visibility/ if no one already is. |
@kentcdodds You want us to update the README? I have my SpectreCSS example (here) Note: I was having some trouble with the |
Hey @geoffdavis92! Thanks for this! It looks like you're not using the latest react-autocompletely@beta but instead using a specific file in your sandbox. Would you be interested in updating it to the latest beta and adding it to the dependencies? (You can fork this) |
@kentcdodds Sure thing, just updated. But it gives me an invariant violation. It doesn't seem to like the |
That was removed. Sorry, things change a lot around here until 1.0.0 is released. See the docs (use the controller). Thanks for any API feedback/help you can give us! |
@kentcdodds Got it working. Do you allow non-contributors to edit the README? Otherwise my example link is here: https://www.codesandbox.io/s/M89KQOBRB |
Thanks! Yes, please open a pull request to the README 😀 |
There's been a significant update! I've updated the README the base example. Please give it a spin! I'm really excited about the flexibility of the new API! Thank you @jaredly for the inspiration here 🎉 |
@kentcdodds great progress, love the new API! 🎉 Couldn't find the time this weekend, but just finished with the first react-select example, see https://codesandbox.io/s/JEKJXDJK I only need to find a way to clear the input when the items prop changes, do you have any ideas on that? Also, would love some feedback! |
Hey @kentcdodds, Is that the expected behaviour to get Love the new API! Great work! I have found it much much easier compared to the previous one as I gave a shot at Genie with the old one and it took me much more time to configure compared to now. PS: your codesandbox example is tagged with |
I've made an example here. Its based on material ui, thought it is a bit different from the existing material-ui example. |
Hey everyone! 👋
I need your help now! The library now has 100% code coverage and is ready to move forward! The first release candidate has been released. I think that the API is solid now and I'd love some feedback on things. Please build some examples and let me know what could be improved! Please install the latest
Or fork this codesandbox and create your own examples! Thanks! |
sure I will update example & do some more :). Good job @kentcdodds !!! |
Hey folks around here! There was a minor breaking change. Before the
|
Hi @kentcdodds 👋 , to help better understand the downshift API I built a |
That's great @agirton! Could you add it to the list of examples in the README? Thank you! |
@kentcdodds sent a PR #157 with new examples 😄 |
@kentcdodds I've got a WIP example of a date picker built with Downshift: https://codesandbox.io/s/nwk52x9qo0 I have a few tweaks I'd like to make, but is there anything in particular you want me to clean up before I submit a PR? |
OH WOWOWOWOWOWOWOWOWOW!! That's super awesome! I'm amazed at how simple it is! I think it could use some fancy styling. Also, if I could change the month/year for the available selection that'd probably be good too, but this is super cool. Thanks @MPLIS! |
we can't do thread to respond, that's a shame, i don't want to flood the conversation too much. okami already use date-fns to handle date so must be pretty easy to implement :) I don't know if that could be a simpler thing but maybe it's worth looking into it :) really quick try here : https://codesandbox.io/embed/m7wrq8lj0y |
I still want examples, but I'm trying to clean things up so I'm going to close this issue. Thanks everyone! |
Latest Update:
Alrighty! We're getting really close now! Just need to tie up some loose ends and make sure we cover all the use cases we want to (ALL OF THEM).
We've released an official "release candidate"
You can install it with:
If you want to help, try implementing an autocomplete/combobox/multi-select/etc. with downshift. You can:
downshift
for the "package name" andrc
for the "version"). Do this even though it already appears in the list of dependencies.downshift:example
tag. That way it shows up in this searchOld Update:
Hey folks! 👋 now that we've released a beta version, it's much easier to make examples. Now you can make them right in the browser 🎉 (thank you @CompuIves!!!)
So, if you've made an example already, would you mind forking this example: http://kcd.im/rac-example and updating it to your example? Then give it a good title and description and add the
react-autocompletely:example
tag That way it shows up in this searchI'll add a link to that in the README so folks can go see all the awesome examples you all make. Thanks!!!
Old stuff
Hey 👋
We need help making examples. I've scaffolded out things for the examples already, but we need more and need to improve the ones that we already do have. Here's a quick rundown of how to get up and running with the examples:
Then open http://localhost:3000/example-name
In the
examples
directory, you'll find apages
directory. Each of those has anindex.js
file which is rendered at that route. For example,semantic-ui/index.js
will be rendered at: http://localhost:3000/semantic-uiSo, the idea for these examples is they can be examples of just about anything. I have a few in there to show examples of how to implement the API or look and feel that other libraries have. That's mostly to demonstrate the power of the primitives available in react-autocomplete.
Feel free to comment here on what example you're working on. You can update an existing example or create a new one. Just let us know so we don't step on each others toes. Thanks!
Oh, and one other thing, right now this repo is private because I need to clear things with legal before we open source it as a PayPal library. So I have to give you commit access. Regardless of that, if you could, please still make forks and don't commit directly to the repo :) Thanks!
The text was updated successfully, but these errors were encountered: