Socket
Book a DemoInstallSign in
Socket

@astii/dialog

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astii/dialog

dialog

0.0.15
latest
Source
npmnpm
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

@astii/dialog

NPM version NPM downloads

Install

$ yarn add @astii/dialog

Usage

import React, { useState } from "react";
import Dialog from "@astii/dialog";
export default () => {
  const [open, setOpen] = useState<boolean>(true);
  return (
    <Dialog
      title="dialog"
      width={500}
      open={open}
      draggable={true}
      inside={true}
      onClose={() => setOpen(false)}
    >
      <h1>dialog</h1>
    </Dialog>
  );
};

Options

interface DialogProps {
  title?: React.ReactNode | string;
  /**
   * @default 1024
   */
  width?: CalStyle;
  open?: boolean;
  children?: React.ReactNode;
  extra?: React.ReactNode;
  footer?: React.ReactNode;
  /**
   * dialog can be drag with handler
   * @default false
   */
  draggable?: boolean;
  /**
   * dialog can be drag within area
   * @default false
   */
  inside?: boolean;
  /**
   * close when click mask
   */
  maskClosable?: boolean;
  contentClassName?: string;
  closeIcon?: React.ReactNode;
  onClose?: () => void;
}

LICENSE

ISC

Keywords

react

FAQs

Package last updated on 20 May 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.