🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@inthepocket/itp-rcc-card

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inthepocket/itp-rcc-card

ITP Card component

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
16
Maintainers
5
Weekly downloads
 
Created
Source

ITP Card component

Usage

$ npm install @inthepocket/itp-rcc-card

Import (Typescript)

import { default as Card } from '@inthepocket/itp-rcc-card';

Import (ES)

import Card from '@inthepocket/itp-rcc-card/dist/Card';

JSX

<Card size="default">
  <Card.Header>
    <h1>Card Header</h1>
  </Card.Header>
  <Card.Body>
    <h2>Card Body title</h2>
    <p>Card Body content</p>
  </Card.Body>
  <Card.Footer>
    <p>Card footer</p>
  </Card.Footer>
</Card>

Card.Header & Card.Footer are optional.

API documentation

Card

<Card size="default"></Card>
PropertyDescriptionTypeDefaultRequired
hrefLink urlstring-No
prefixCssPrefix for css classNamesstring'card'No
sizedefault, small or largestring'default'No
stylesimported css module (if passed, prefixed classNames will be disabled), see styles propertyobjectnullNo
typeprimary, secondary or tertiarystring'primary'No
onClickFunction-No
targetLink targetstring-No

Styles property

PropertyDescriptionTypeDefaultRequired
bodystring-Yes
bodySizeLargestring-No
bodySizeSmallstring-No
cardstring-Yes
footerstring-No
footerSizeLargestring-No
footerSizeSmallstring-No
headerstring-No
headerSizeLargestring-No
headerSizeSmallstring-No
linkstring-No
typePrimarystring-No
typeSecondarystring-No
typeTertiarystring-No

The css module should look like this:

.card             { ... }
.header           { ... }
.headerSizeSmall  { ... }
.headerSizeLarge  { ... }
.body             { ... }
.bodySizeSmall    { ... }
.bodySizeLarge    { ... }
.footer           { ... }
.footerSizeSmall  { ... }
.footerSizeLarge  { ... }
.link             { ... }
.typePrimary      { ... }
.typeSecondary    { ... }
.typeTertiary     { ... }

Body

<Card size="default">
  <Card.Body>
    ...
  </Card.Body>
</Card>

Header

<Card size="default">
  <Card.Header>
    ...
  </Card.Header>
</Card>
<Card size="default">
  <Card.Footer>
    ...
  </Card.Footer>
</Card>

Development

Installation

$ npm install

Test

$ npm run test

Build

Compiles the TypeScript source to ES5.

$ npm run build

Keywords

react

FAQs

Package last updated on 11 Dec 2018

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