Hey guys, I can’t seem to get the select component from your components library to work by setting custom props on my development.
I’m getting the following error:
Error: Can only use Select.Option and Select.OptionGroup as children to Select
Here is my code
<PlasmicComponent
component="Select"
componentProps={{
color: "clear",
"aria-label": "Choose a color variant",
value: "addOns",
children: (
<>
<PlasmicComponent
component="Select.Option"
componentProps={{
value: "one",
children: "one",
}}
/>
</>
),
}}/>
I’ve tried several different combinations for the component name (Option, Select.Option, Selet: Option, Select Option" but none seems to work. According to the api explorer it should be “Option” but i can’t seem to figure it out. BTW the code from the explorer example doesn’t work either