Socket
Socket
Sign inDemoInstall

@hig/modal

Package Overview
Dependencies
Maintainers
5
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/modal

HIG Modal


Version published
Maintainers
5
Created
Source

Modal

A modal is an overlay that focuses the customer's attention on a single task or set of controls. It creates a mode that disables the main window but keeps it visible with the modal window as a child window in front of it. Users must interact with the modal window before they can return to the parent application.

Read more about when and how to use the Modal component on the internal wiki.

Getting started

Install the package

yarn add @hig/modal

Import the component and CSS

import Modal from '@hig/modal';
import '@hig/modal/build/index.css';

Basic usage

<Modal
  title="Are you sure?"
  open
  buttons={[{ title: "Cancel", type: "secondary" }, { title: "Ok" }]}
  body="This is the text body of my modal"
  style="alternate"
>
  <h1>
    <u>This is my HTML title</u>
  </h1>
  <p>
    <i>This is my HTML content.</i>
  </p>
</Modal>

FAQs

Package last updated on 25 May 2018

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