GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CampusLabs/olay-react: Olay implemented as a React component.

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
cogs.js
cogs.js
 
 
index.html
index.html
 
 
olay-react.css
olay-react.css
 
 
olay-react.es6
olay-react.es6
 
 
olay-react.js
olay-react.js
 
 
package.json
package.json
 
 

Repository files navigation

OlayReact

Olay implemented as a React component.

Install

bower install olay-react

or

npm install olay-react

Browser Support

OlayReact supports all of the modern browsers out of the box. To support older versions of IE (<= 9), you will need to include a shim to add classList support.

API

Top-Level

OlayReact

OlayReact is a normal React component. To open or close the Olay, simply add or remove a child element to the Olay component.

Properties

close required

Provide a close function to be invoked when an action has dictated that the Olay should be closed. This function should ensure the OlayReact component will have no children in it the next time render is called. See the test file for an example of using React state to manage the state of the Olay's visibility.

transitionName

The name of the transition to use, defaults to olay-fade which is provided in olay-react.css.

transitionEnter/transitionLeave

Boolean values that determine when transitions should be used, each default to true.

children

Render children inside of the OlayReact component to open an Olay with those children. Render no children to hide the Olay.

Examples

Check out the test file for a full example.

Known Issues

  • Preventing tab-focusing from leaving the Olay is not implemented. The only solutions I've found (including the one orgsync/olay uses) are quite hacky.

About

Olay implemented as a React component.

Resources

Readme
MIT license
Activity
Custom properties

Stars

14 stars

Watchers

20 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.