Twitter2.3k

Card

Displays a card with header, content, and footer.

Login to your account

Enter your email below to login to your account

Installation

ng g @spartan-ng/cli:ui card

Usage

import { HlmCardImports } from '@spartan-ng/helm/card';
<section hlmCard>
  <div hlmCardHeader>
    <h3 hlmCardTitle>Card Title</h3>
    <p hlmCardDescription>Card Description</p>
		<div hlmCardAction></div>
  </div>
  <p hlmCardContent>Card Content</p>
  <p hlmCardFooter>Card Footer</p>
</section>

Examples

Size

Small Card

This card uses the small size variant.

The card component supports a size prop that can be set to "sm" for a more compact appearance.

Image

Event cover
Featured

Design systems meetup

A practical talk on component APIs, accessibility, and shipping faster.

Helm API

HlmCardAction

Selector: [hlmCardAction]

HlmCardContent

Selector: [hlmCardContent]

HlmCardDescription

Selector: [hlmCardDescription]

HlmCardFooter

Selector: [hlmCardFooter],hlm-card-footer

HlmCardHeader

Selector: [hlmCardHeader],hlm-card-header

HlmCardTitle

Selector: [hlmCardTitle]

HlmCard

Selector: [hlmCard],hlm-card

Inputs

PropTypeDefaultDescription
size 'sm' | 'default' default -
Carousel Calendar