🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react-dock-modal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dock-modal

A Dockable React Modal Like GMail Compose Window

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

react-dock-modal

A Dockable React Modal Like GMail Compose Window

NPM JavaScript Style Guide

Demo

https://crackayus09.github.io/react-dock-modal/

Install

npm install --save react-dock-modal

OR

yarn add react-dock-modal

Usage

import React, { Component } from 'react'

import DockModal from 'react-dock-modal'
import 'react-dock-modal/dist/index.css'

class Example extends Component {
  render() {
    if (children) {
      //With Children
      return (
        <DockModal>
          <Children />
        </DockModal>
      )
    } else {
      //Without Children
      return <DockModal />
    }
  }
}

Properties

Prop NameDescription
initalTypeInitial Type (dock, minim or modal). Default is dock.
headerNameHeader Name. Default is New DockModal.
bgcolorHeader Background Colour. Default is black.
fgcolorHeader Font Colour. Default is white.
fweightHeader Font Weight. Default is bold.
paramsJavascript Object containing following properties. dockWidth (Default 40%), dockHeight (Default 70%), minimWidth (Default 25%), minimHeight (Default 10%), modalWidth (Default 70%) and modalHeight (Default 650px). The values can be in CSS width height formats.

License

MIT © crackayus09

Keywords

react

FAQs

Package last updated on 06 Jul 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