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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pertec-card

v1.0.1

Published

A flexible Vue 3 card component with multiple variants and styling options

Readme

pertec-card

A flexible and beautiful Vue 3 card component with multiple variants and styling options.

Features

  • 🎨 Beautiful design with light/dark mode support
  • 🧩 Modular components - use only what you need
  • 📱 Responsive design
  • 🎭 Multiple variants (default, header)
  • 🚀 Tree-shakeable

Installation

npm install pertec-card

Usage

Basic Usage

<template>
  <PertecCard>
    <PertecCardHeader>
      <PertecCardTitle>Card Title</PertecCardTitle>
      <PertecCardSubtitle>Card subtitle</PertecCardSubtitle>
    </PertecCardHeader>
    <PertecCardContent>
      <p>Your content here...</p>
    </PertecCardContent>
    <PertecCardFooter>
      <button>Action</button>
    </PertecCardFooter>
  </PertecCard>
</template>

<script>
import { 
  PertecCard,
  PertecCardHeader,
  PertecCardTitle,
  PertecCardSubtitle,
  PertecCardContent,
  PertecCardFooter
} from 'pertec-card'
import 'pertec-card/style.css'

export default {
  components: {
    PertecCard,
    PertecCardHeader,
    PertecCardTitle,
    PertecCardSubtitle,
    PertecCardContent,
    PertecCardFooter
  }
}
</script>

Header Variant with Props

<template>
  <PertecCard 
    variant="header" 
    title="My Title" 
    subtitle="My Subtitle"
  >
    <PertecCardContent>
      <p>Content goes here...</p>
    </PertecCardContent>
  </PertecCard>
</template>

API

PertecCard Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'default' \| 'header' | 'default' | Card variant | | title | string | undefined | Title (only for header variant) | | subtitle | string | undefined | Subtitle (only for header variant) |

Components

  • PertecCard - Main card container
  • PertecCardHeader - Card header section
  • PertecCardTitle - Card title (h3 element)
  • PertecCardSubtitle - Card subtitle (p element)
  • PertecCardContent - Card content area
  • PertecCardFooter - Card footer section

Styling

The component includes default styles that support both light and dark modes. Import the CSS file:

import '@pertec/card/style.css'

Custom Styling

You can override styles by targeting the CSS classes:

  • .card - Main card container
  • .cardHeader - Header section
  • .cardTitle - Title element
  • .cardSubtitle - Subtitle element
  • .cardContent - Content area
  • .cardFooter - Footer section

License

MIT