npm.io
3.1.25 • Published 4 years ago

@crave/farmblocks-card

Licence
MIT
Version
3.1.25
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
20

Farmblocks Card

A styled card to put content inside.

Installation

npm install @crave/farmblocks-card

API

Property Description Type Default
floating if present, the card drops a bigger shadow boolean false
type the type of card (reflects on background color) string (one of "FEATURED", "NEUTRAL", "DEFAULT") DEFAULT
width a css value to be used as width string 100%
p padding. See reference number 2
overflow a css value to be used as overflow string visible
children the contents of the card React.Node
boxShadow specifies a custom border shadow. Please note that this will override floating property string

Peer dependencies

  • react
  • prop-types
  • styled-components
  • styled-system

License

MIT

Keywords