thombruce / tnt

Thom's Nuxt Template
https://tnt.thombruce.com/
MIT License
1 stars 0 forks source link

[Feature]: Add "Cycle" input #112

Open thombruce opened 2 months ago

thombruce commented 2 months ago

Feature request

The cycle input would work a lot like a single-option dropdown or radio select input. It would ideally be used in scenarios where only a few options are present, and we'd like a simple means of cycling through them.

It would show the default option and, when clicked, cycle to the next option, then the next, then the next, and cycle back to the default.

A blank option would be permissible, though it would be advised in such cases to have some decoration in order to indicate that the input even exists.

Use case:

I want to be able to cycle through priority options on Toodles: ["", "A", "B", "C"] In this case, a blank option is present but I imagine the decoration indicating something goes here would be the parentheses around the todo priority.

By default, some other decoration should be present; perhaps an arrow, caret or double-caret on either side.

Code of Conduct