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

@rcarls/rc-fab-menu

v0.5.0

Published

Floating action button menu wrapper for an rc-menu action surface.

Readme

@rcarls/rc-fab-menu

Floating action button menu wrapper for an rc-menu action surface.

Docs: https://richardcarls.github.io/rc-webcomponents/components/rc-fab-menu.

Use this when a primary floating action needs a short menu of related commands. The component specializes rc-menu-button, so it keeps the same menu keyboard behavior, light dismiss, focus return, and anchor positioning while adding floating action button placement and reveal styling.

Installation

npm install @rcarls/rc-fab-menu

Import

import '@rcarls/rc-fab-menu/define';

Basic usage

<rc-fab-menu>
  <button slot="trigger" type="button" aria-label="Create">
    <span aria-hidden="true">+</span>
  </button>

  <rc-menu label="Create">
    <button data-value="recipe">Recipe</button>
    <button data-value="collection">Collection</button>
  </rc-menu>
</rc-fab-menu>

The trigger is a consumer-authored native button. The menu is a normal rc-menu, so command activation comes from rc-menu-activate and menu rows keep the same APG menu semantics as the standalone menu package.

API

rc-fab-menu inherits open, defaultOpen, openMenu(), closeMenu(), and toggleMenu() from rc-menu-button unchanged. It also overrides placement's default (see below).

| Property | Attribute | Type | Default | Description | | ----------- | ----------- | ------------------------------------------------------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------ | | position | position | 'bottom-end' \| 'bottom-start' \| 'top-end' \| 'top-start' | 'bottom-end' | Viewport corner where the trigger is anchored. | | placement | placement | AnchorPlacement | 'top-end' | Preferred popup placement. Overrides rc-menu-button's 'bottom-start' default so the action menu opens above the trigger. |

| Event | Detail | Description | | -------------------- | ------------------- | ------------------------------------------------------------ | | rc-fab-menu-toggle | { open: boolean } | Fired when user interaction opens or closes the action menu. |

Theming

The default styling is design-system neutral and follows the rc-fab token names where possible.

| CSS custom property | Default | Description | | ------------------------------ | -------- | ------------------------------------------------------------------------------- | | --rc-fab-menu-position-css | fixed | CSS position value for the floating wrapper. | | --rc-fab-menu-inset-block | 1.5rem | Distance from the block-axis edge; falls back through --rc-fab-inset-block. | | --rc-fab-menu-inset-inline | 1.5rem | Distance from the inline-axis edge; falls back through --rc-fab-inset-inline. | | --rc-fab-menu-size | (none) | Trigger minimum inline and block size. Set explicitly or apply a theme. | | --rc-fab-menu-radius | (none) | Trigger border radius, deferring to native button radius when unset. | | --rc-fab-menu-bg | (none) | Trigger background, deferring to native button background when unset. | | --rc-fab-menu-color | (none) | Trigger foreground, deferring to native button color when unset. | | --rc-fab-menu-popup-duration | 0ms | Popup reveal transition duration. |

Use ::part(popup) for popup container refinements and theme rc-menu for action rows.