JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 50
  • Score
    100M100P100Q57632F

Package Exports

  • qwik-pick
  • qwik-pick/dist/main.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (qwik-pick) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Qwik-Pick

Qwik-Pick is a replacement for the native select element, with a focus on performance and accessibility.

Usage

$ npm i qwik-pick # or pnpm install or yarn install

Features

  • Performance: Virtualization to render only the visible options.
  • Accessibility: Keyboard navigation, screen readers, and more.
  • Customization: Custom styles, custom options, and more.

Example

import { component$, useSignal } from "@builder.io/qwik"
import { Select, OptionType } from "qwik-pick"

const options = [
  { label: "Option 1", value: "option1" },
  { label: "Option 2", value: "option2" },
]

export const App = component$(() => {
  const [selectedOption, setSelectedOption] = useSignal<OptionType>()

  return (
    <Select
      options={options}
      defaultOption={selectedOption}
      onChange={setSelectedOption}
    />
  )
})

Warning

Currently, the library is in the early stages of development, so it's not fully feature rich. Upcoming versions will include multi-select, async options, custom styles, portal, debounce etc.