GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thisbeyond/solid-select: The Select component for Solid.

BranchesTags
Open more actions menu

Latest commit

 

History

140 Commits
140 Commits

Folders and files

NameName
Last commit message
Last commit date
.agent
.agent
 
 
public
public
 
 
resources
resources
 
 
site
site
 
 
src
src
 
 
tests/e2e
tests/e2e
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
.release-it.json
.release-it.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mise.toml
mise.toml
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsup.config.ts
tsup.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 
vitest.setup.ts
vitest.setup.ts
 
 

Repository files navigation

Solid Select- The Select component for Solid.
  • Built for Solid: leverages fine-grained reactivity primitives for coordination.
  • Flexible: built to support a wide range of cases, from single selects to multi-select autocomplete lists.
  • Extendable: use the pre-fabricated components or build your own from the core primitives.
  • Zero dependencies: Just pair with Solid and good to go.

solid select preview

How do I get started? 🧭

Install it:

npm install @thisbeyond/solid-select

Use it:

import { Select } from "@thisbeyond/solid-select";
import "@thisbeyond/solid-select/style.css";

const App = () => {
  return (
    <div>
      <Select options={["apple", "banana", "pear", "pineapple", "kiwi"]} />
    </div>
  );
};

export default App;

See more examples at https://solid-select.com

What's implemented? ✔️

  • A high level Select component that can be configured with either a static or dynamic list of options.
  • Support for single value selection or multiple value selection.
  • createOptions helper for configuring filterable options based on input value (complete with match highlighting). Works with lists of plain strings or can be passed a 'key' to filter against lists of objects. Can also be used to configure creating new options on the fly.
  • Opt-in sensible default styling. Customise easily or style from scratch.
  • Composable building blocks to create your own control.
  • Lower level createSelect primitive if you just want the core logic.

Who made this? ✍

Martin Pengelly-Phillips

Why did you make it?

I've been part of the SolidJS community for a while now and one of the things I really like is the emphasis on trying things out and sharing them (https://hack.solidjs.com). The ecosystem is small which creates a lot of opportunity and a lower barrier to entry for sharing I find.

I published my first Solid library (https://solid-dnd.com) a short while back as a first dabble in sharing what I had learnt on a personal project. That went well so when I had to create a multi-select autocomplete control for another personal project I knew I'd be sharing that too - and so Solid Select came to be :)

About

The Select component for Solid.

solid-select.com

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

201 stars

Watchers

1 watching

Forks

21 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.