modal-gen

1.0.0 • Public • Published

modal-gen

Creates a Modal so you dont have to!

usage

const modalgen = require('modal-gen')

modalgen({
	cid: 'mymodal',                           // Your Modal's customId
	title: 'My Modal'                         // The big text at the top
}, [{                                         // You need an array with atleast one item

	cid: 'mymodalcomponent',                  // The compoenents customId
	label: 'Input here!!!',                   // The text at the top of the element
	style: 'PARAGRAPH',                       // the style (can be 'PARAGRAPH' or 'SHORT')
	required: true,                           // input needed? in this case yes
	max: 3000,                                // maximum input length
	min: 100,                                 // minimum input length
	placeholder: 'Lorem ipsum dolor sit amet' // placeholder text
	
}])



Readme

Keywords

none

Package Sidebar

Install

npm i modal-gen

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.67 kB

Total Files

3

Last publish

Collaborators

  • nvcbl