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

showcase-components

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

showcase-components

A small React library for displaying previews/iframes/images of applications and websites inside browser and phone-like containers.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Showcase Components (React)

npm Version

This is a small React component library to be used as containers for showcasing projects, portfolio work, guides etc that are better presented in the context of a phone or browser window.

For reference they look like this:

image

Installation

npm i --save showcase-components

Configuring with Webpack

This package is meant to be used with a build tool to aid resolution of CSS modules. Webpack or similar with style-loader & css-loader will be required to use this package (although in most cases these packages should already be in use in most react build configurations).

Reasoning

This entire package compressed is under 2K. An alternative .png type wrapper will be larger and it won't be dynamic. Yay fast loading and customisation!

The API for the components is pretty simple.

Example

import React, { Component } from 'react'
import { Laptop } from 'showcase-components'

const MyAwesomePreview = (props) => (
    <Laptop>
        <iframe src={mywebsiteurl}></iframe>
    </Laptop>
)

// OR
const MyAwesomePreviewAsImg = (props) => (
    <Laptop>
        <img src={mywebsiteurl}></img>
    </Laptop>
)

// OR
const MyAwesomePreviewAsJsx = (props) => (
    <Laptop>
        <SomeOtherReactComponentsHere />
    </Laptop>
)

See the typings file for a fuller description of properties that are exposed.

Issues

Please feel free to lodge an issue at the public git repository.

Keywords

FAQs

Package last updated on 24 Mar 2019

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