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

[Question] Array Input Component #420

Closed
elmpp opened this issue Mar 11, 2021 · 1 comment
Closed

[Question] Array Input Component #420

elmpp opened this issue Mar 11, 2021 · 1 comment
Labels

Comments

@elmpp
Copy link

elmpp commented Mar 11, 2021

I'd like to accept a collection of values as part of a single field. With web apps there'd customarily be a button to add another text input below the last.

Would you have any thoughts/gotchyas on how to create such a component?

@elmpp elmpp changed the title Array Input Component [Question] Array Input Component Mar 11, 2021
@vadimdemedes
Copy link
Owner

Usually CLIs use multi selects for this kind of thing, like this https://github.com/terkelg/prompts#multiselectmessage-choices-initial-max-hint-warn. There's no component I'm aware of that builds that with Ink, so you'd have to implement it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants