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

@leafygreen-ui/expandable-card

Package Overview
Dependencies
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/expandable-card

leafyGreen UI Kit Expandable Card

latest
Source
npmnpm
Version
5.1.0
Version published
Weekly downloads
2.9K
10.05%
Maintainers
6
Weekly downloads
 
Created
Source

Expandable Card

npm (scoped)

View on MongoDB.design

Installation

PNPM

pnpm add @leafygreen-ui/expandable-card

Yarn

yarn add @leafygreen-ui/expandable-card

NPM

npm install @leafygreen-ui/expandable-card

Example

import ExpandableCard from '@leafygreen-ui/expandable-card';

<ExpandableCard
  title="Lorem Ipsum"
  description="Donec id elit non mi porta gravida at eget metus"
  flagText="optional"
  darkMode={false}
>
  Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
  fermentum massa justo sit amet risus.
</ExpandableCard>;

Properties

PropTypeDescriptionDefault
titleReact.ReactNodeThe title of the card (Required)
descriptionstringDescription text below the title
flagTextstringText in parentheses immediately following the title. Typically 'optional' or 'required'
darkModebooleanToggles dark modefalse
defaultOpenbooleanDefines the default state of the cardfalse
isOpenbooleanForces the card stateundefined
onClick(event: React.SyntheticEvent) => voidCallback fired when a user clicks the card header
idstringUnique id for the card
classNamestringStyling prop
contentClassNamestringStyling prop for children

FAQs

Package last updated on 07 Oct 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