Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-react-popup

Package Overview
Dependencies
Maintainers
1
Versions
1235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-react-popup

Kendo UI for React Popup package

  • 0.3.0-dev.201801301554
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
143K
increased by4.33%
Maintainers
1
Weekly downloads
 
Created

What is @progress/kendo-react-popup?

@progress/kendo-react-popup is a React component library that provides a Popup component for displaying content in a popup window. It is part of the KendoReact suite of UI components and is designed to be highly customizable and easy to integrate into React applications.

What are @progress/kendo-react-popup's main functionalities?

Basic Popup

This code demonstrates a basic usage of the Popup component. It toggles the visibility of the popup when the button is clicked and anchors the popup to a specific element.

import React from 'react';
import { Popup } from '@progress/kendo-react-popup';

const BasicPopup = () => {
  const [show, setShow] = React.useState(false);
  return (
    <div>
      <button onClick={() => setShow(!show)}>Toggle Popup</button>
      <Popup show={show} anchor={document.getElementById('anchor')}>Hello, World!</Popup>
      <div id="anchor" style={{ marginTop: '20px' }}>Anchor Element</div>
    </div>
  );
};

export default BasicPopup;

Custom Popup Position

This code demonstrates how to customize the position of the Popup component. The popup is displayed at a specific position relative to the anchor element.

import React from 'react';
import { Popup } from '@progress/kendo-react-popup';

const CustomPositionPopup = () => {
  const [show, setShow] = React.useState(false);
  return (
    <div>
      <button onClick={() => setShow(!show)}>Toggle Popup</button>
      <Popup show={show} anchor={document.getElementById('anchor')} position={{ top: 50, left: 100 }}>Custom Position</Popup>
      <div id="anchor" style={{ marginTop: '20px' }}>Anchor Element</div>
    </div>
  );
};

export default CustomPositionPopup;

Popup with Animation

This code demonstrates how to add animations to the Popup component. The popup will animate when it opens and closes with specified durations.

import React from 'react';
import { Popup } from '@progress/kendo-react-popup';

const AnimatedPopup = () => {
  const [show, setShow] = React.useState(false);
  return (
    <div>
      <button onClick={() => setShow(!show)}>Toggle Popup</button>
      <Popup show={show} anchor={document.getElementById('anchor')} animate={{ openDuration: 300, closeDuration: 300 }}>Animated Popup</Popup>
      <div id="anchor" style={{ marginTop: '20px' }}>Anchor Element</div>
    </div>
  );
};

export default AnimatedPopup;

Other packages similar to @progress/kendo-react-popup

Keywords

FAQs

Package last updated on 30 Jan 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