You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@asphalt-react/card

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asphalt-react/card

Card

npmnpm
Version
1.14.1
Version published
Weekly downloads
301
-7.38%
Maintainers
3
Weekly downloads
 
Created
Source

Card

A card is container to display related pieces of information in a single unit. Cards also provide summary of the information and a linked entry point to further details of that content.

Few uses of cards are to show movie titles on an OTT platform, product on an ecommerce website, feed of posts or articles on a website.

There are two variants:

  • Outlined (default): Outline cards renders an outline border. When you have a big collection choose outline cards for less visual clutter.

  • Elevated: Elevated cards renders a drop shadow to make the card visually raise from the parent surface. Use elevated cards when the content needs more emphasises.

Usage

import Card from "@asphalt-react/card"

function App() {
  return (
    <Card>
      <div></div>
    </Card>
  )
}

Props

children

Card content

typerequireddefault
nodetrueN/A

elevated

Renders elevated card

typerequireddefault
boolfalseN/A

outlined

DEPRECATED
The card is outlined by default. We'll remove this prop in the next major release.

Renders outline card.

typerequireddefault
boolfalseN/A

stretch

Stretches the card to it's container width

typerequireddefault
boolfalseN/A

Keywords

asphalt

FAQs

Package last updated on 12 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts