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

Separator item #4

Open
sindresorhus opened this issue Mar 24, 2018 · 2 comments
Open

Separator item #4

sindresorhus opened this issue Mar 24, 2018 · 2 comments

Comments

@sindresorhus
Copy link
Collaborator

sindresorhus commented Mar 24, 2018

It should be possible to add a separator item. The separator should not be focusable and should just be skipped when going up and down on the list.

Example: https://github.com/SBoudrias/Inquirer.js#separator

@kevva
Copy link
Contributor

kevva commented Mar 29, 2018

We could export a Symbol and accept that in items and match against it when rendering. Don't know if it works if we accept a component directly, seems like componentWillReceiveProps just runs endlessly then.

@sindresorhus
Copy link
Collaborator Author

Using a Symbol is a good idea.

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

No branches or pull requests

2 participants