New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@markdijkstra/react-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markdijkstra/react-placeholder

React component which allows you to create dummy placeholders.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

react-placeholder

npm NPM GitHub issues CircleCI

React component which allows you to create dummy placeholders.

How install

npm i @markdijkstra/react-placeholder

How to use

import {Placeholder} from '@markdijkstra/react-placeholder'


const PlaceholderData = [
    {
        height          : '150px',
        width           : '300px',
        backgroundColor : '#eee',
        borderColor     : '#ccc',
        textColor       : '#aaa',
        fontSize        : '13px',
        caption         : 'placeholder caption'
    }
];

<Placeholder options={PlaceholderData} className="my-placeholder"/>

Options

optiondefault
height150px
width300px
backgroundColor#eee
borderColor#ccc
textColor#aaa
fontSize13px
captionheight x width

The value caption can be removed by setting it to 'false'.

Keywords

npm

FAQs

Package last updated on 21 Jan 2020

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