But then how would you support choices or conditions for example?
fruits = MultiChoiceInput
# What are your favourite fruits?
- [ ] Apples
- [ ] Oranges
- [ ] Bananas
Personally I'd prefer good old MDX though: <MultiChoiceInput
name="fruits"
hideIf={name.value !== "FruitLover"}
options={["Apples", "Oranges", "Bananas]}
/>I like the syntax notpushkin proposed and would extend it a bit like this:
fruits* = MultiChoiceInput
# Pick two out of three fruits
Fruits are healthy, so let's pick two fruits
you will eat every morning for the coming week
- [ ] Apple
- [ ] Orange
- [ ] Banana