New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/media-card

Package Overview
Dependencies
Maintainers
1
Versions
598
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/media-card

Includes all media card related components, CardView, CardViewSmall, Card...

  • 14.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-59.81%
Maintainers
1
Weekly downloads
 
Created
Source

AtlasKit component registry Commitizen friendly semantic-release Report an issue

MediaCard

Exports 3 components:

  1. Card
  2. CardView
  3. CardList

Example @atlaskit/media-card

Try it out

Interact with a live demo of the @atlaskit/media-card component.

Installation

yarn add @atlaskit/media-card

Using the component

Card

import {Card} from '@atlaskit/media-card';
import {ContextFactory} from '@atlaskit/media-core';

const context = ContextFactory.create({ clientId, serviceHost, tokenProvider });

// url preview
const urlPreviewId = {
  mediaItemType: 'link',
  url: 'https://atlassian.com'
};

<Card context={context} identifier={urlPreviewId} />

// stored link 
const linkId = {
  mediaItemType: 'link',
  id: 'some-link-id',
  collectionName: 'some-collection-name'
};

<Card context={context} identifier={linkId} />

// stored file 
const fileId = {
  mediaItemType: 'file',
  id: 'some-file-id',
  collectionName: 'some-collection-name'
};

<Card context={context} identifier={fileId} />

* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies.

We're here to help!

Let us know what you think of our components and docs, your feedback is really important for us.

Are you in trouble? Read through our contribution guidelines and raise an issue to us.

Keywords

FAQs

Package last updated on 08 May 2017

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