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

@lemonadejs/speeddial

v6.0.0-beta.0

Published

LemonadeJS speeddial block — contract-verified, framework-agnostic.

Readme

<Speeddial /> — @lemonadejs/speeddial

LemonadeJS speeddial block — contract-verified, framework-agnostic.

✓ verified — 18 contract checks · framework-agnostic · zero dependencies

Overview

— a floating action button that fans out a column/row of small action buttons. New v6 block (no v5 ancestor).

One FAB toggles the fan on click; hovering opens it and leaving closes it after a 150ms grace timer (cancelled on re-enter and on unmount — destroy-clean). Escape closes. Picking an action fires its own onclick, then onaction(name, event), then closes the fan.

bind is the open state (named fanned), two-way: external writes flip the fan silently — onopen/onclose fire on user/api transitions only.

Fan-out stagger: each action carries an inline transition-delay of index * 30ms — deterministic, testable as a style attribute. The FAB icon rotates 45° while open (pure CSS on lm-speeddial-open). Action tooltips are plain CSS side labels — no Tooltip dependency.

Install

npm install @lemonadejs/speeddial
import Speeddial from '@lemonadejs/speeddial';
import '@lemonadejs/speeddial/style.css';

Usage

import { html, mount } from 'lemonadejs';

const App = () => html`<div>
    <${Speeddial} />
</div>`;

mount(App, document.getElementById('root'));

Three deployment forms, one component:

html`<${Speeddial} />`                       // by value (no registration)
setComponents({ Speeddial });               // then <Speeddial /> by name anywhere
createWebComponent(Speeddial);              // <lm-speeddial> in plain HTML/any framework

Props

Every declared prop arrives as a live state — pass a value for a snapshot or a state for a two-way live wire. Attribute strings are coerced to the declared type.

| Prop | Type | Default | Description | |---|---|---|---| | bind | boolean | — | Two-way bound value. .set() fires onchange; plain assignment is silent. two-way open state (fanned) | | options | array | — | SpeeddialAction[] — live | | icon | string | '' | FAB icon (default 'add' icon; rotates 45° to × when open) | | direction | string | '' | '' = up | down | left | right | | position | string | '' | '' = static in flow | 'fixed' (bottom-right) | | label | string | '' | aria-label for the FAB | | disabled | boolean | false | blocks every trigger |

Events

All event names are lowercase (the platform convention — LJS-305 warns otherwise).

  • onopen — fan opened (user/api — bind writes are silent)
  • onclose — fan closed (user/api — bind writes are silent)
  • onaction — (name, event) when an action is picked

API (via ref)

import { ref } from 'lemonadejs';
const speeddial = ref();
html`<${Speeddial} ref="${speeddial}" />`;
// speeddial.current.open(...)  ·  speeddial.current.close(...)  ·  speeddial.current.toggle(...)
  • open()
  • close()
  • toggle()

Styling

All classes follow the lm-speeddial-* convention; visual variants are data-* attributes on the root. Override freely — there is no styling engine to fight.

Contract

The machine-readable schema ships with the package:

import contract from '@lemonadejs/speeddial/contract.json';

verify.json carries the conformance proof produced by verify(Speeddial).