How to use @instructure/ui-motion - 7 common examples

To help you get started, we’ve selected a few @instructure/ui-motion examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-overlays / src / Overlay / index.js View on Github external
* An element or a function returning an element to apply `aria-hidden` to
     */
    applicationElement: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),
    /**
     * An element or a function returning an element that wraps the content of the ``
     */
    contentElement: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),

    shouldContainFocus: PropTypes.bool,
    shouldReturnFocus: PropTypes.bool,
    shouldCloseOnDocumentClick: PropTypes.bool,
    shouldCloseOnEscape: PropTypes.bool,
    /**
     * The type of `` to use for animating in/out
     */
    transition: Transition.propTypes.type,
    /**
     * Show the component; triggers the enter or exit animation
     */
    in: PropTypes.bool,
    /**
     * Unmount the component (remove it from the DOM) when it is not shown
     */
    unmountOnExit: PropTypes.bool,
    /**
     * Run the enter animation when the component mounts, if it is initially
     * shown
     */
    transitionOnMount: PropTypes.bool,
    /**
     * Run the enter animation
     */
github instructure / instructure-ui / packages / ui-modal / src / Modal / index.js View on Github external
* An element or a function returning an element to use as the mount node
     * for the `` (defaults to `document.body`)
     */
    mountNode: PropTypes.oneOfType([element, PropTypes.func]),
    /**
     * Insert the element at the 'top' of the mountNode or at the 'bottom'
     */
    insertAt: PropTypes.oneOf(['bottom', 'top']),

    /**
     * An element, function returning an element, or array of elements that will not be hidden from
     * the screen reader when the `` is open
     */
    liveRegion: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),

    transition: Transition.propTypes.type,

    /**
     * Callback fired before the  transitions in
     */
    onEnter: PropTypes.func,
    /**
     * Callback fired as the  begins to transition in
     */
    onEntering: PropTypes.func,
    /**
     * Callback fired after the  finishes transitioning in
     */
    onEntered: PropTypes.func,
    /**
     * Callback fired right before the  transitions out
     */
github instructure / instructure-ui / packages / ui-overlays / src / Modal / index.js View on Github external
* An element or a function returning an element to use as the mount node
     * for the `` (defaults to `document.body`)
     */
    mountNode: PropTypes.oneOfType([element, PropTypes.func]),
    /**
     * Insert the element at the 'top' of the mountNode or at the 'bottom'
     */
    insertAt: PropTypes.oneOf(['bottom', 'top']),

    /**
     * An element, function returning an element, or array of elements that will not be hidden from
     * the screen reader when the `` is open
     */
    liveRegion: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),

    transition: Transition.propTypes.type,

    /**
     * Callback fired before the  transitions in
     */
    onEnter: PropTypes.func,
    /**
     * Callback fired as the  begins to transition in
     */
    onEntering: PropTypes.func,
    /**
     * Callback fired after the  finishes transitioning in
     */
    onEntered: PropTypes.func,
    /**
     * Callback fired right before the  transitions out
     */
github instructure / instructure-ui / packages / ui-core / src / components / Overlay / index.js View on Github external
* An element or a function returning an element to apply `aria-hidden` to
     */
    applicationElement: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element, PropTypes.func]),
    /**
     * An element or a function returning an element that wraps the content of the ``
     */
    contentElement: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),

    shouldContainFocus: PropTypes.bool,
    shouldReturnFocus: PropTypes.bool,
    shouldCloseOnDocumentClick: PropTypes.bool,
    shouldCloseOnEscape: PropTypes.bool,
    /**
     * The type of `` to use for animating in/out
     */
    transition: Transition.propTypes.type,
    /**
     * Show the component; triggers the enter or exit animation
     */
    in: PropTypes.bool,
    /**
     * Unmount the component (remove it from the DOM) when it is not shown
     */
    unmountOnExit: PropTypes.bool,
    /**
     * Run the enter animation when the component mounts, if it is initially
     * shown
     */
    transitionOnMount: PropTypes.bool,
    /**
     * Run the enter animation
     */
github instructure / instructure-ui / packages / ui-core / src / components / Transition / index.js View on Github external
* SOFTWARE.
 */

 import React, { Component } from 'react'

 import deprecated, { changedPackageWarning } from '@instructure/ui-utils/lib/react/deprecated'

 import UITransition from '@instructure/ui-motion/lib/components/Transition'

 @deprecated('5.0.0', null, changedPackageWarning(
   'ui-core',
   'ui-motion'
 ))
 class Transition extends Component {
   static propTypes = {
     ...UITransition.PropTypes
   }

   render () {
     return 
   }
 }

 export default Transition

@instructure/ui-motion

A UI component library made by Instructure Inc.

MIT
Latest version published 6 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages