Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wedgekit/card

Package Overview
Dependencies
Maintainers
16
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wedgekit/card

Cards for the Wedgekit Design System

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
16
Weekly downloads
 
Created
Source

@wedgekit/card

Description

Cards provide a consistent way to visually group related content.

Installation

yarn add @wedgekit/card

Note: In order to use @wedgekit/card you must have installed react, react-dom and styled-components

Examples

Basic Example

import React from 'react';
import Card from '@wedgekit/card';

const Demo = () => <Card>Hello World</Card>;

React Component Child

import React from 'react';
import Card from '@wedgekit/card';

const Child = () => <div>Hello World</div>;

const Demo = () => (
  <Card>
    <Child />
  </Card>
);

Multiple Children

import React from 'react';
import Card from '@wedgekit/card';

const Child1 = () => <span>Hello </span>;

const Child2 = () => <span>World</span>;

const Demo = () => (
  <Card>
    <Child1 />
    <Child2 />
  </Card>
);

Further Reading

A detailed prop list and specialized use cases can be found in the DOCUMENTATION.

FAQs

Package last updated on 28 Jun 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc