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

@duskmoon-dev/el-card

v1.5.5

Published

A container component with header, body, and footer sections.

Readme

@duskmoon-dev/el-card

A container component with header, body, and footer sections.

Installation

bun add @duskmoon-dev/el-card

Usage

Auto-Register (Recommended)

The simplest way to use the component - just import and it's ready:

<!-- Via CDN -->
<script type="module" src="https://esm.sh/@duskmoon-dev/el-card/register"></script>

<!-- Now use the element -->
<el-dm-card>
  <h3 slot="header">Card Title</h3>
  <p>Card body content goes here.</p>
  <div slot="footer">
    <button>Action</button>
  </div>
</el-dm-card>

Or with a bundler:

import '@duskmoon-dev/el-card/register';

Manual Registration

<script type="module">
  import { register } from '@duskmoon-dev/el-card';
  register();
</script>

<el-dm-card>
  <h3 slot="header">Card Title</h3>
  <p>Card body content goes here.</p>
</el-dm-card>

Variants

| Variant | Description | | ---------- | --------------------------------- | | elevated | Raised card with shadow (default) | | outlined | Card with border | | filled | Card with subtle background |

Padding

| Size | Description | | ------ | ------------------------ | | none | No padding | | sm | Small padding | | md | Medium padding (default) | | lg | Large padding |

Attributes

| Attribute | Type | Default | Description | | ------------- | ------- | ---------- | ------------------- | | variant | string | elevated | Card variant | | interactive | boolean | false | Make card clickable | | padding | string | md | Padding size |

Slots

| Slot | Description | | --------- | ---------------------------------- | | (default) | Card body content | | header | Header section | | footer | Footer section | | media | Media content (image/video) at top |

CSS Parts

| Part | Description | | -------- | ------------------- | | card | Main card container | | header | Header section | | body | Body section | | footer | Footer section | | media | Media section |

CSS Custom Properties

| Property | Description | | ------------------------- | ---------------- | | --dm-card-padding | Card padding | | --dm-card-border-radius | Border radius | | --dm-card-background | Background color | | --dm-card-border-color | Border color | | --dm-card-shadow | Box shadow |

Examples

With Media

<el-dm-card>
  <img slot="media" src="image.jpg" alt="Card image" />
  <h3 slot="header">Image Card</h3>
  <p>Description of the image.</p>
</el-dm-card>

Interactive Card

<el-dm-card interactive onclick="handleClick()">
  <h3 slot="header">Clickable Card</h3>
  <p>Click me!</p>
</el-dm-card>

Outlined Variant

<el-dm-card variant="outlined">
  <p>Outlined card content.</p>
</el-dm-card>

License

MIT