atom-modal-views

1.0.30 • Public • Published

Actions Status Dependency Status

atom-modal-views

Modal Input Views for Atom packages

InputView

Single line input view

Usage

const { InputView } = require("atom-modal-views");

const inputView = new InputView({
	title: "Title text",
	description: "Description can use **markdown**",
	placeholder: "placeholder text",
	value: "initial value",
});

const value = await inputView.getInput();

image

Options

Name Default Description
title "" Title inside <h1> tag
description "" Description can contain markdown
placeholder "" Placeholder text to show when input is empty
value "" The initial value

Readme

Keywords

Package Sidebar

Install

npm i atom-modal-views

Weekly Downloads

11

Version

1.0.30

License

MIT

Unpacked Size

24.8 kB

Total Files

17

Last publish

Collaborators

  • tonybrix