npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cujuju/solidjs-select-flyout

v0.1.1

Published

Keyboard-accessible <select> replacement for SolidJS — roving focus, type-ahead, ARIA combobox/listbox, rendered through an anchored glass-menu panel so backdrop-filter actually applies.

Downloads

182

Readme

@cujuju/solidjs-select-flyout

A keyboard-accessible <select> replacement for SolidJS — roving focus, type-ahead, and full ARIA combobox + listbox semantics. The dropdown is painted by the .glass-menu surface from @cujuju/solidjs-glass (via @cujuju/solidjs-glass-menu) and positioned through @cujuju/solidjs-anchored-popover.

Native UA-rendered <option> lists cannot accept backdrop-filter or other modern CSS effects — the OS owns the popup chrome. Flyout is a fully author-rendered panel, so a glass-styled select is possible.

Flyout is controlled: it owns no value state. Pass value + onChange and render it wherever a native single-choice <select> would go.

Install

pnpm add @cujuju/solidjs-select-flyout @cujuju/solidjs-anchored-popover @cujuju/solidjs-glass-menu @cujuju/solidjs-glass @cujuju/solidjs-hooks

@cujuju/solidjs-anchored-popover, @cujuju/solidjs-glass-menu, and @cujuju/solidjs-hooks are peer dependencies; glass-menu in turn needs @cujuju/solidjs-glass. solid-js >=1.7.0 is also a peer dependency.

Quick start

import { createSignal } from 'solid-js';
import { Flyout } from '@cujuju/solidjs-select-flyout';

function Example() {
  const [fruit, setFruit] = createSignal('apple');

  return (
    <Flyout
      value={fruit()}
      onChange={setFruit}
      ariaLabel="Fruit"
      options={[
        { value: 'apple', label: 'Apple' },
        { value: 'banana', label: 'Banana' },
        { value: 'cherry', label: 'Cherry', disabled: true },
      ]}
    />
  );
}

Props — FlyoutProps

| Prop | Type | Notes | |------|------|-------| | options | FlyoutOption[] | The selectable options — see FlyoutOption. | | value | string | Currently selected option value. No match → the trigger shows placeholder (and a dev warning fires when value is non-empty). | | onChange | (value: string) => void | Called with the chosen option's value. | | placeholder | string? | Trigger text when value matches no option. | | disabled | boolean? | Disables the trigger; the panel never opens. | | ariaLabel | string? | Accessible name for the trigger (combobox) and the listbox. | | class | string? | Class applied to the trigger button — for width / margin. The trigger's own structural styles are emitted at single-class specificity, so author rules merge as expected. | | id | string? | Trigger element id — useful when an external <label for=...> points at it. |

FlyoutOption

| Field | Type | Notes | |-------|------|-------| | value | string | Stable identity passed to onChange. | | label | string | Display text — also the type-ahead match target. | | disabled | boolean? | Not focusable, not selectable; skipped by arrow / Home / End navigation. |

Keyboard

| Key | Closed trigger | Open panel | |-----|----------------|------------| | Space / Enter | open | select focused option | | ArrowDown / ArrowUp | open | move focus (wraps, skips disabled) | | Home / End | — | first / last enabled option | | Escape | — | close, restore focus to trigger | | Tab | — | close, restore focus, let Tab proceed | | printable char | — | type-ahead jump (500 ms idle buffer) |

What Flyout does NOT do

  • Multi-selectvalue is a single string. Fork if you need multi.
  • Async / virtualized option lists — the panel scrolls past ~10 rows; keep option counts modest, like a native select.
  • Search / filter input — use a chip-flyout or a bespoke combobox.
  • Form association — the trigger is a <button type="button"> with no hidden input; the value lives only in the value/onChange pair, not in <form> FormData.

Styling

Flyout uses stable global classes, prefixed cujuju-select-flyout-* (-trigger, -trigger-open, -chevron, -label, -placeholder, -panel, -list, -option, -option-selected, -option-focused, -check).

The stylesheet registers itself as an import side effect — when the package is consumed from source (the solid export condition). A published dist build extracts CSS to a separate file that the JS bundle does not reference; dist consumers must import it once:

import '@cujuju/solidjs-select-flyout/styles.css';

The .glass-menu surface is themed through @cujuju/solidjs-glass (see that package's menu-tint engine).

Host theme tokens

The trigger / panel reference these CSS custom properties — provide them on a host ancestor (e.g. :root): --height-btn, --color-border, --color-surface, --color-surface-hover, --color-text, --color-text-secondary, --color-primary, --color-primary-alpha-10, --radius-btn, --radius-sm, --font-size-sm, --z-flyout.

License

MIT