Skip to content

Release 0.10.0

Choose a tag to compare

@martinpengellyphillips martinpengellyphillips released this 26 May 19:20
· 56 commits to main since this release

Added

  • Accept emptyPlaceholder property on Select to control the message
    displayed when there are no options available. Defaults to No options.
    Thanks to @raskyer for this contribution.

  • The initialValue prop of the Select component can now be a Signal in order
    to support reactively re-setting the initial value of the component. This is
    useful for providing 'reset form' functionality for example.

    const [initialValue, setInitialValue] = createSignal(null, { equals: false });
    
    <Select
      initialValue={initialValue}
      options={["apple", "banana", "pear", "pineapple", "kiwi"]}
    />
    
    <button onClick={() => setInitialValue(null)}>Reset</button>