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

@i-am-shashikant-d/card-angular

v1.0.0

Published

Angular implementation of Shiro Card component - modern, accessible, and customizable card component with multiple variants

Readme

@shiro/card-angular

Angular implementation of the Shiro Card component - a modern, accessible, and customizable card component with multiple variants.

Installation

npm install @shiro/card-angular @i-am-shashikant-d/core

Peer Dependencies

This package requires:

  • @angular/core >= 15.0.0
  • @angular/common >= 15.0.0
  • @angular/animations >= 15.0.0

Usage

Import the Module

import { ShiroCardModule } from '@shiro/card-angular';

@NgModule({
  imports: [
    ShiroCardModule
  ]
})
export class AppModule { }

Basic Card

<shiro-card
  title="Card Title"
  subtitle="Card Subtitle"
  description="Card description text"
  variant="default"
  size="md"
>
  <p>Card content goes here</p>
</shiro-card>

Enhanced Card with Actions

<shiro-card-enhanced
  title="Enhanced Card"
  description="A card with advanced features"
  variant="primary"
  [expandable]="true"
  [actions]="cardActions"
  [menuActions]="menuActions"
  (expandToggle)="onExpandToggle($event)"
  (share)="onShare($event)"
>
  <p>Main content</p>
  <div slot="expanded">
    <p>Expanded content shown when card is expanded</p>
  </div>
</shiro-card-enhanced>

Component API

ShiroCardComponent

Inputs:

  • variant: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info'
  • size: 'sm' | 'md' | 'lg'
  • orientation: 'vertical' | 'horizontal'
  • elevation: number (0-5)
  • interactive: boolean
  • clickable: boolean
  • hoverable: boolean
  • borderless: boolean
  • fullWidth: boolean
  • disabled: boolean
  • loading: boolean
  • image: string (URL)
  • imageAlt: string
  • imagePosition: 'top' | 'bottom' | 'left' | 'right' | 'background'
  • title: string
  • subtitle: string
  • description: string
  • actions: CardAction[]
  • href: string
  • target: string

Outputs:

  • cardClick: EventEmitter
  • cardFocus: EventEmitter
  • cardBlur: EventEmitter
  • cardKeyDown: EventEmitter
  • cardMouseEnter: EventEmitter
  • cardMouseLeave: EventEmitter
  • actionClick: EventEmitter<{action: CardAction, index: number, event: MouseEvent}>

ShiroCardEnhancedComponent

Includes all ShiroCardComponent features plus:

Additional Inputs:

  • expandable: boolean
  • expanded: boolean
  • expandDirection: 'down' | 'up' | 'left' | 'right'
  • expandedContent: string
  • autoCollapse: boolean
  • collapseDelay: number
  • menuActions: CardMenuAction[]
  • menuPosition: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right'
  • showMenuButton: boolean
  • bookmarked: boolean
  • enableContextMenu: boolean

Additional Outputs:

  • expandToggle: EventEmitter
  • share: EventEmitter
  • copy: EventEmitter
  • bookmark: EventEmitter
  • edit: EventEmitter
  • delete: EventEmitter
  • download: EventEmitter
  • menuActionClick: EventEmitter<{action: CardMenuAction, event: MouseEvent}>

Styling

The component uses CSS custom properties for theming. You can override these in your global styles:

:root {
  --shiro-primary: #007bff;
  --shiro-primary-dark: #0056b3;
  --shiro-focus-color: #007bff;
}

Accessibility

The Shiro Card components follow WCAG 2.1 AA standards and include:

  • Proper ARIA attributes
  • Keyboard navigation support
  • Focus management
  • Screen reader support
  • High contrast mode support
  • Reduced motion support

License

MIT

Links