Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@leafygreen-ui/card

Package Overview
Dependencies
Maintainers
0
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/card

leafyGreen UI Kit Card

latest
Source
npmnpm
Version
13.0.5
Version published
Maintainers
0
Created
Source

Card

npm (scoped)

View on MongoDB.design

Installation

PNPM

pnpm add @leafygreen-ui/card

Yarn

yarn add @leafygreen-ui/card

NPM

npm install @leafygreen-ui/card

Example

import Card from '@leafygreen-ui/card';

<Card className="card-styles" as="article">
  This is my card component
</Card>;

Properties

Card is a styled wrapper for the Box component. Any properties you would pass to Box can also be passed to Card.

PropTypeDescriptionDefault
classNamestringAdds a className to the class attribute
contentStyle'none', 'clickable'Whether the card should display as a visually clickable element.'clickable' when a valid onClick handler or href link is provided
darkModebooleanDetermines whether or not the component will appear in dark mode.false

Any other properties will be spread on the Box element.

FAQs

Package last updated on 10 Sep 2025

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