@leafygreen-ui/card
leafyGreen UI Kit Card
Last updated 2 months ago by brookescarlett .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install @leafygreen-ui/card 
SYNC missed versions from official npm registry.

Card

npm (scoped)

View on Storybook

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.

Prop Type Description Default
className string Adds 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

Any other properties will be spread on the Box element.

Current Tags

  • 5.0.2                                ...           latest (2 months ago)

15 Versions

  • 5.0.2                                ...           2 months ago
  • 5.0.1                                ...           3 months ago
  • 5.0.0                                ...           3 months ago
  • 4.1.0                                ...           5 months ago
  • 4.0.2                                ...           5 months ago
  • 4.0.1                                ...           6 months ago
  • 4.0.0                                ...           7 months ago
  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 4
Last Day 1
Last Week 1
Last Month 18
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |