solid-select
solid-select copied to clipboard
How to define predefined values ?
is there any way to pre define the value in the Select box here is the thing that i want to do let suppose
const [value, setValue] = createSignal<string[]>(['apple', 'banana'])
const preValue = ['apple']
and then use that state in the select component
<Select
multiple
options={value()}
value={preValue} // want to do something like that to already add apple and banana as selected
onChange={setValue}
/>