Socket
Socket
Sign inDemoInstall

@react-md/overlay

Package Overview
Dependencies
11
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-md/overlay

A very simple package for dynamically creating overlays.


Version published
Maintainers
1
Install size
2.39 MB
Created

Changelog

Source

5.1.6 (2023-12-11)

Bug Fixes

  • @react-md/chip: add overflow to support font icons (da44bbd), closes #1432
  • select: port fixed positioning fixes back from v6.0.0 (feb9ec6), closes #1461

Documentation

  • react-md.dev: update blog to include additional releases (b305882)

Readme

Source

@react-md/overlay

Create overlays within your app to help the user focus on a temporary material such as dialogs or drawers.

Installation

npm install --save @react-md/overlay

Since this package isn't that helpful on its own, it is also recommended to install the following packages:

npm install --save @react-md/theme \
  @react-md/button \
  @react-md/typography

Documentation

You should check out the full documentation for live examples and more customization information, but an example usage is shown below.

Usage

import { useState } from "react";
import { render } from "react-dom";
import { Overlay } from "@react-md/overlay";

const App = () => {
  const [visible, setVisible] = useState(false);

  return (
    <>
      <button
        id="example-button"
        type="button"
        onClick={() => setVisible((prevVisible) => !prevVisible)}
      >
        Show overlay
      </button>
      <Overlay
        id="example-overlay"
        onClick={() => setVisible(false)}
        visible={visible}
      />
    </>
  );
};

render(<App />, document.getElementById("root"));

Keywords

FAQs

Last updated on 11 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc