Socket
Book a DemoInstallSign in
Socket

@leafygreen-ui/card

Package Overview
Dependencies
Maintainers
6
Versions
76
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

13.0.3
latest
Source
npmnpm
Version published
Weekly downloads
58K
37.19%
Maintainers
6
Weekly downloads
 
Created
Source

Card

npm (scoped)

View on MongoDB.design

Installation

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>;

Output HTML

<div class="leafygreen-ui-1lu17q2 card-styles">This is my card component</div>

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 03 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.