Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

khanetor/react-semantic-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Modal for Semantic UI

Depreciation: This is no longer maintained. Please take a look at the modal from Rackt, which provides a minimal modal that you can customize depending on your CSS framework.

Dependencies:
  • Webpack
  • Webpack dev server
  • Babel loader
  • React
  • React Portal
  • Semantic UI
Install:
npm install --save react-semantic-modal

<!-- include semantic stylesheet in your html -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/semantic-ui/2.0.8/semantic.min.css">

<!-- include jquery and semantic javascript in your html -->
<script src="//cdn.jsdelivr.net/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/semantic-ui/2.0.8/semantic.min.js"></script>
Usage:

Please see build/index.html and src/components/index.jsx for example. Include Semantic UI css and javascript, and jQuery.

Modal.propTypes = {
  isOpened: PropTypes.bool,
  closeOnEsc: PropTypes.bool,
  closeOnOutsideClick: PropTypes.bool,
  onClose: PropTypes.func,
  closeIcon: PropTypes.bool,
  style: PropTypes.oneOf(['standard', 'basic']),
  size: PropTypes.oneOf(['', 'small', 'large', 'fullscreen'])
};
Modal.defaultProps = {
  style: 'standard',
  size: ''
};

About

React component for semantic UI modal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published