
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
@asphalt-react/card
Advanced tools
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 Card is to show movie titles on an OTT platform, product on an e-commerce website, feed of posts or articles on a website.
Card expands to occupy all available horizontal within its container by default, you can change it to fit the content as well. Card comes in three sizes small (s), medium (m) & large (l).
import { Card } from "@asphalt-react/card"
function App() {
  return (
    <Card>
      <div>Content</div>
    </Card>
  )
}
Card have two variants -
Elevated - Card appears with shadow around it, which makes it visually distinct from the container surface and has more emphasis.
Outlined - Card appears with border around it, has less emphasis that the elevated variant.
Card can also appears without shadow and border to have more subdued look and minimal emphasis.
If values for none of them is set, then the Card will appear in the elevated variant.
primary
secondary
tertiary
success
info
warning
danger
brand
inverse
Node for card content.
| type | required | default | 
|---|---|---|
| node | true | N/A | 
Controls size of card. Possible values are "xs", "s", "m" & "l" for extra-small, small, medium & large respectively.
| type | required | default | 
|---|---|---|
| enum | false | "m" | 
Adds outline around card.
| type | required | default | 
|---|---|---|
| union | false | null | 
Elevates the card from the container surface.
| type | required | default | 
|---|---|---|
| union | false | null | 
Adds padding inside card.
| type | required | default | 
|---|---|---|
| bool | false | true | 
Adjusts the width of the card as per its content.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies primary intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies secondary intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies tertiary intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies brand intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies inverse intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies danger intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies warning intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies success intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies info intent.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Applies deboss top effect to the card.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Adds a bevel top effect to the card.
| type | required | default | 
|---|---|---|
| bool | false | false | 
Adds a bevel bottom effect to the card.
| type | required | default | 
|---|---|---|
| bool | false | false | 
FAQs
Card
We found that @asphalt-react/card demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.