https://github.com/munawwar/preact-combobox
A Preact multi-select combobox component
https://github.com/munawwar/preact-combobox
Last synced: 7 months ago
JSON representation
A Preact multi-select combobox component
- Host: GitHub
- URL: https://github.com/munawwar/preact-combobox
- Owner: Munawwar
- License: mit
- Created: 2025-02-01T10:06:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-16T16:21:23.000Z (8 months ago)
- Last Synced: 2025-02-23T00:55:11.301Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 142 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PreactCombobox
Work-in-progress: DO NOT USE ON PRODUCTION!
A Preact multi-select combobox component

## Installation
```bash
# `npm add preact` first
npm add preact-combobox @popperjs/core
```## Usage
```jsx
import PreactCombobox, { defaultLabelTransform } from "preact-combobox";const options = [
{ label: "Option 1", value: "option-1" },
{ label: "Option 2", value: "option-2" },
{ label: "Option 3", value: "option-3" },
];function App() {
const [values, setValues] = useState([]);return (
<>
Basic example
Optional stuff
>
);
}
```## Run Demo
```bash
npm run dev
# open http://localhost:3050/example/example.html on a browser
```