Skip Navigation
Magma

Transition

Smart wrappers using framer-motion to add transitions to child components.

Basic Usage

The theme defines several preconfigured transitions that will apply the base styles and the exit and enter variants. Changing the value of isOpen results in the transition animating. Going from isOpen={true} to isOpen={false} will results in the transition animating to the exit variant. Going from isOpen={false} to isOpen={true} will result in animating to the enter variant.

Collapse

Collapse will transition the child components from 100% height to 0px.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} collapse>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Fade

To have the child components fade from completely transparent use the fade transition.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} fade>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Nudge

The Nudge transitions (nudgeLeft, nudgeRight, nudgeTop, nudgeBottom) move the children from 50px away from their target. Alone this might look weird, but when used in conjection with fade it gives the apparence of fading into a closer position.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} nudgeLeft style={{ margin: '0 0 10px 50px' }}>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Rotate

The rotate transitions (rotate45, rotate90, rotate180) will rotate the child components counter-clockwise.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 50px;
margin: 0 auto;
background: #bada55;
`;
return (
<>
<Transition
isOpen={isOpen}
style={{ width: '250px', height: '250px' }}
rotate45
>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>rotate</Button>
</>
);
}

Scale

The scale transition will scale the child components from 95% to 100%. This alone will not look impressive, but when used with fade creates a nice transition.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
margin: 0 auto;
`;
return (
<>
<Transition isOpen={isOpen} style={{ width: '250px' }} scale>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'shrink' : 'grow'}
</Button>
</>
);
}

Slide

The slide transitions (slideRight, slideLeft, slideTop, slideBottom) will slide the children to the edge of the screen from outside of view. The slide transitions will always anchor the children to one of the edges of the screen.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 100%;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} slideLeft>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Composition

Transitions can be combined to create more advanced effects.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} nudgeBottom fade>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

unmountOnExit

By default, Transition will only transition between the two style variants for enter and exit but will leave the children in the DOM. Using the prop unmountOnExit will remove the children from the DOM completely after they have been animated off the visible screen.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
return (
<>
<Transition isOpen={isOpen} collapse unmountOnExit>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Custom Transition

The magma theme has several sane defaults to create a consistent experience across all apps. But Transition does allow for customTransition and style to be overwritten.

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
const customTransition = {
exit: {
rotate: 360,
transition: {
rotate: {
type: 'inertia',
velocity: 500,
},
},
},
enter: {
rotate: 0,
transition: {
rotate: {
type: 'spring',
damping: 10,
stiffness: 100,
},
},
},
};
const baseStyle = {
width: '250px',
height: '250px',
};
return (
<>
<Transition
style={baseStyle}
isOpen={isOpen}
customTransition={customTransition}
>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>Spin it!</Button>
</>
);
}

Kitchen Sink

import React from 'react';
import styled from '@emotion/styled';
import { Button, Transition, Checkbox } from 'react-magma-dom';
export function Example() {
const [isOpen, setIsOpen] = React.useState(false);
const [properties, setProperties] = React.useState({});
const Box = styled('div')`
height: 250px;
width: 250px;
background: #bada55;
`;
const Preview = () => (
<pre>
{'<'}Transition{' '}
{Object.keys(properties)
.filter(key => properties[key])
.join(' ')}
{'>\n'}
{' <'}div{'>'}children{'<'}/div{'>\n'}
{'<'}/Transition{'>'}
</pre>
);
return (
<>
<Checkbox
labelText="unmountOnExit"
checked={properties.unmountOnExit}
onChange={() =>
setProperties({
...properties,
unmountOnExit: !properties.unmountOnExit,
})
}
/>
<Checkbox
labelText="fade"
checked={properties.fade}
onChange={() =>
setProperties({ ...properties, fade: !properties.fade })
}
/>
<Checkbox
labelText="scale"
checked={properties.scale}
onChange={() =>
setProperties({ ...properties, scale: !properties.scale })
}
/>
<Checkbox
labelText="collapse"
checked={properties.collapse}
disabled={
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeTop |
properties.nudgeBottom |
properties.nudgeLeft |
properties.nudgeRight
}
onChange={() =>
setProperties({ ...properties, collapse: !properties.collapse })
}
/>
<Checkbox
labelText="slideTop"
checked={properties.slideTop}
disabled={
properties.collapse |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeTop |
properties.nudgeBottom |
properties.nudgeLeft |
properties.nudgeRight
}
onChange={() =>
setProperties({ ...properties, slideTop: !properties.slideTop })
}
/>
<Checkbox
labelText="slideBottom"
checked={properties.slideBottom}
disabled={
properties.collapse |
properties.slideTop |
properties.slideLeft |
properties.slideRight |
properties.nudgeTop |
properties.nudgeBottom |
properties.nudgeLeft |
properties.nudgeRight
}
onChange={() =>
setProperties({
...properties,
slideBottom: !properties.slideBottom,
})
}
/>
<Checkbox
labelText="slideRight"
checked={properties.slideRight}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.nudgeTop |
properties.nudgeBottom |
properties.nudgeLeft |
properties.nudgeRight
}
onChange={() =>
setProperties({
...properties,
slideRight: !properties.slideRight,
})
}
/>
<Checkbox
labelText="slideLeft"
checked={properties.slideLeft}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideRight |
properties.nudgeTop |
properties.nudgeBottom |
properties.nudgeLeft |
properties.nudgeRight
}
onChange={() =>
setProperties({ ...properties, slideLeft: !properties.slideLeft })
}
/>
<Checkbox
labelText="nudgeTop"
checked={properties.nudgeTop}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeBottom
}
onChange={() =>
setProperties({ ...properties, nudgeTop: !properties.nudgeTop })
}
/>
<Checkbox
labelText="nudgeBottom"
checked={properties.nudgeBottom}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeTop
}
onChange={() =>
setProperties({
...properties,
nudgeBottom: !properties.nudgeBottom,
})
}
/>
<Checkbox
labelText="nudgeRight"
checked={properties.nudgeRight}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeLeft
}
onChange={() =>
setProperties({
...properties,
nudgeRight: !properties.nudgeRight,
})
}
/>
<Checkbox
labelText="nudgeLeft"
checked={properties.nudgeLeft}
disabled={
properties.collapse |
properties.slideTop |
properties.slideBottom |
properties.slideLeft |
properties.slideRight |
properties.nudgeRight
}
onChange={() =>
setProperties({ ...properties, nudgeLeft: !properties.nudgeLeft })
}
/>
<Preview />
<Transition isOpen={isOpen} {...properties}>
<Box />
</Transition>
<Button onClick={() => setIsOpen(!isOpen)}>
{isOpen ? 'hide' : 'show'}
</Button>
</>
);
}

Transition Props

Any other props supplied will be provided to the wrapping motion.div element.

about

Type

string

Default

-


accessKey

Type

string

Default

-


aria-activedescendant

Type

string

Default

-


aria-atomic

Type

Booleanish

Default

-


aria-autocomplete

Type

none | list | inline | both

Default

-


aria-braillelabel

Type

string

Default

-


aria-brailleroledescription

Type

string

Default

-


aria-busy

Type

Booleanish

Default

-


aria-checked

Type

boolean | true | false | mixed

Default

-


aria-colcount

Type

number

Default

-


aria-colindex

Type

number

Default

-


aria-colindextext

Type

string

Default

-


aria-colspan

Type

number

Default

-


aria-controls

Type

string

Default

-


aria-current

Type

boolean | page | time | true | false | step | location | date

Default

-


aria-describedby

Type

string

Default

-


aria-description

Type

string

Default

-


aria-details

Type

string

Default

-


aria-disabled

Type

Booleanish

Default

-


aria-dropeffect

Type

none | link | copy | execute | move | popup

Default

-


aria-errormessage

Type

string

Default

-


aria-expanded

Type

Booleanish

Default

-


aria-flowto

Type

string

Default

-


aria-grabbed

Type

Booleanish

Default

-


aria-haspopup

Type

boolean | grid | dialog | menu | true | false | listbox | tree

Default

-


aria-hidden

Type

Booleanish

Default

-


aria-invalid

Type

boolean | true | false | grammar | spelling

Default

-


aria-keyshortcuts

Type

string

Default

-


aria-label

Type

string

Default

-


aria-labelledby

Type

string

Default

-


aria-level

Type

number

Default

-


aria-live

Type

off | assertive | polite

Default

-


aria-modal

Type

Booleanish

Default

-


aria-multiline

Type

Booleanish

Default

-


aria-multiselectable

Type

Booleanish

Default

-


aria-orientation

Type

horizontal | vertical

Default

-


aria-owns

Type

string

Default

-


aria-placeholder

Type

string

Default

-


aria-posinset

Type

number

Default

-


aria-pressed

Type

boolean | true | false | mixed

Default

-


aria-readonly

Type

Booleanish

Default

-


aria-relevant

Type

all | text | additions | additions removals | additions text | removals | removals additions | removals text | text additions | text removals

Default

-


aria-required

Type

Booleanish

Default

-


aria-roledescription

Type

string

Default

-


aria-rowcount

Type

number

Default

-


aria-rowindex

Type

number

Default

-


aria-rowindextext

Type

string

Default

-


aria-rowspan

Type

number

Default

-


aria-selected

Type

Booleanish

Default

-


aria-setsize

Type

number

Default

-


aria-sort

Type

none | ascending | descending | other

Default

-


aria-valuemax

Type

number

Default

-


aria-valuemin

Type

number

Default

-


aria-valuenow

Type

number

Default

-


aria-valuetext

Type

string

Default

-


autoCapitalize

Type

unknown | none | off | on | sentences | words | characters

Default

-


autoCorrect

Type

string

Default

-


autoFocus

Type

boolean

Default

-


autoSave

Type

string

Default

-


children

Description

The content of the component

Type

ReactNode

Default

-


className

Type

string

Default

-


collapse

Description

Should children collapse in/out

Type

boolean

Default

false


color

Type

string

Default

-


content

Type

string

Default

-


contentEditable

Type

inherit | Booleanish | plaintext-only

Default

-


contextMenu

Type

string

Default

-


dangerouslySetInnerHTML

Type

function

Default

-


datatype

Type

string

Default

-


defaultChecked

Type

boolean

Default

-


defaultValue

Type

string | number | unknown

Default

-


dir

Type

string

Default

-


draggable

Type

Booleanish

Default

-


enterKeyHint

Type

done | search | enter | go | next | previous | send

Default

-


fade

Description

Should children fade in/out

Type

boolean

Default

false


hidden

Type

boolean

Default

-


id

Type

string

Default

-


inlist

Type

any

Default

-


inputMode

Type

none | search | text | tel | url | email | numeric | decimal

Default

-


is

Type

string

Default

-


isOpen

Description

If

Type

boolean

Default

false


itemID

Type

string

Default

-


itemProp

Type

string

Default

-


itemRef

Type

string

Default

-


itemScope

Type

boolean

Default

-


itemType

Type

string

Default

-


key

Type

Key

Default

-


lang

Type

string

Default

-


nonce

Type

string

Default

-


nudgeBottom

Description

Should the children get nudged in 50px from the bottom

Type

boolean

Default

false


nudgeLeft

Description

Should the children get nudged in 50px from the left

Type

boolean

Default

false


nudgeRight

Description

Should the children get nudged in 50px from the right

Type

boolean

Default

false


nudgeTop

Description

Should the children get nudged in 50px from the top

Type

boolean

Default

false


onAbort

Type

ReactEventHandler

Default

-


onAbortCapture

Type

ReactEventHandler

Default

-


onAnimationEnd

Type

AnimationEventHandler

Default

-


onAnimationEndCapture

Type

AnimationEventHandler

Default

-


onAnimationIteration

Type

AnimationEventHandler

Default

-


onAnimationIterationCapture

Type

AnimationEventHandler

Default

-


onAnimationStartCapture

Type

AnimationEventHandler

Default

-


onAuxClick

Type

MouseEventHandler

Default

-


onAuxClickCapture

Type

MouseEventHandler

Default

-


onBeforeInput

Type

FormEventHandler

Default

-


onBeforeInputCapture

Type

FormEventHandler

Default

-


onBlur

Type

FocusEventHandler

Default

-


onBlurCapture

Type

FocusEventHandler

Default

-


onCanPlay

Type

ReactEventHandler

Default

-


onCanPlayCapture

Type

ReactEventHandler

Default

-


onCanPlayThrough

Type

ReactEventHandler

Default

-


onCanPlayThroughCapture

Type

ReactEventHandler

Default

-


onChange

Type

FormEventHandler

Default

-


onChangeCapture

Type

FormEventHandler

Default

-


onClick

Type

MouseEventHandler

Default

-


onClickCapture

Type

MouseEventHandler

Default

-


onCompositionEnd

Type

CompositionEventHandler

Default

-


onCompositionEndCapture

Type

CompositionEventHandler

Default

-


onCompositionStart

Type

CompositionEventHandler

Default

-


onCompositionStartCapture

Type

CompositionEventHandler

Default

-


onCompositionUpdate

Type

CompositionEventHandler

Default

-


onCompositionUpdateCapture

Type

CompositionEventHandler

Default

-


onContextMenu

Type

MouseEventHandler

Default

-


onContextMenuCapture

Type

MouseEventHandler

Default

-


onCopy

Type

ClipboardEventHandler

Default

-


onCopyCapture

Type

ClipboardEventHandler

Default

-


onCut

Type

ClipboardEventHandler

Default

-


onCutCapture

Type

ClipboardEventHandler

Default

-


onDoubleClick

Type

MouseEventHandler

Default

-


onDoubleClickCapture

Type

MouseEventHandler

Default

-


onDragCapture

Type

DragEventHandler

Default

-


onDragEndCapture

Type

DragEventHandler

Default

-


onDragEnter

Type

DragEventHandler

Default

-


onDragEnterCapture

Type

DragEventHandler

Default

-


onDragExit

Type

DragEventHandler

Default

-


onDragExitCapture

Type

DragEventHandler

Default

-


onDragLeave

Type

DragEventHandler

Default

-


onDragLeaveCapture

Type

DragEventHandler

Default

-


onDragOver

Type

DragEventHandler

Default

-


onDragOverCapture

Type

DragEventHandler

Default

-


onDragStartCapture

Type

DragEventHandler

Default

-


onDrop

Type

DragEventHandler

Default

-


onDropCapture

Type

DragEventHandler

Default

-


onDurationChange

Type

ReactEventHandler

Default

-


onDurationChangeCapture

Type

ReactEventHandler

Default

-


onEmptied

Type

ReactEventHandler

Default

-


onEmptiedCapture

Type

ReactEventHandler

Default

-


onEncrypted

Type

ReactEventHandler

Default

-


onEncryptedCapture

Type

ReactEventHandler

Default

-


onEnded

Type

ReactEventHandler

Default

-


onEndedCapture

Type

ReactEventHandler

Default

-


onError

Type

ReactEventHandler

Default

-


onErrorCapture

Type

ReactEventHandler

Default

-


onFocus

Type

FocusEventHandler

Default

-


onFocusCapture

Type

FocusEventHandler

Default

-


onGotPointerCapture

Type

PointerEventHandler

Default

-


onGotPointerCaptureCapture

Type

PointerEventHandler

Default

-


onInput

Type

FormEventHandler

Default

-


onInputCapture

Type

FormEventHandler

Default

-


onInvalid

Type

FormEventHandler

Default

-


onInvalidCapture

Type

FormEventHandler

Default

-


onKeyDown

Type

KeyboardEventHandler

Default

-


onKeyDownCapture

Type

KeyboardEventHandler

Default

-


onKeyPress

Type

KeyboardEventHandler

Default

-


onKeyPressCapture

Type

KeyboardEventHandler

Default

-


onKeyUp

Type

KeyboardEventHandler

Default

-


onKeyUpCapture

Type

KeyboardEventHandler

Default

-


onLoad

Type

ReactEventHandler

Default

-


onLoadCapture

Type

ReactEventHandler

Default

-


onLoadStart

Type

ReactEventHandler

Default

-


onLoadStartCapture

Type

ReactEventHandler

Default

-


onLoadedData

Type

ReactEventHandler

Default

-


onLoadedDataCapture

Type

ReactEventHandler

Default

-


onLoadedMetadata

Type

ReactEventHandler

Default

-


onLoadedMetadataCapture

Type

ReactEventHandler

Default

-


onLostPointerCapture

Type

PointerEventHandler

Default

-


onLostPointerCaptureCapture

Type

PointerEventHandler

Default

-


onMouseDown

Type

MouseEventHandler

Default

-


onMouseDownCapture

Type

MouseEventHandler

Default

-


onMouseEnter

Type

MouseEventHandler

Default

-


onMouseLeave

Type

MouseEventHandler

Default

-


onMouseMove

Type

MouseEventHandler

Default

-


onMouseMoveCapture

Type

MouseEventHandler

Default

-


onMouseOut

Type

MouseEventHandler

Default

-


onMouseOutCapture

Type

MouseEventHandler

Default

-


onMouseOver

Type

MouseEventHandler

Default

-


onMouseOverCapture

Type

MouseEventHandler

Default

-


onMouseUp

Type

MouseEventHandler

Default

-


onMouseUpCapture

Type

MouseEventHandler

Default

-


onPaste

Type

ClipboardEventHandler

Default

-


onPasteCapture

Type

ClipboardEventHandler

Default

-


onPause

Type

ReactEventHandler

Default

-


onPauseCapture

Type

ReactEventHandler

Default

-


onPlay

Type

ReactEventHandler

Default

-


onPlayCapture

Type

ReactEventHandler

Default

-


onPlaying

Type

ReactEventHandler

Default

-


onPlayingCapture

Type

ReactEventHandler

Default

-


onPointerCancel

Type

PointerEventHandler

Default

-


onPointerCancelCapture

Type

PointerEventHandler

Default

-


onPointerDown

Type

PointerEventHandler

Default

-


onPointerDownCapture

Type

PointerEventHandler

Default

-


onPointerEnter

Type

PointerEventHandler

Default

-


onPointerLeave

Type

PointerEventHandler

Default

-


onPointerMove

Type

PointerEventHandler

Default

-


onPointerMoveCapture

Type

PointerEventHandler

Default

-


onPointerOut

Type

PointerEventHandler

Default

-


onPointerOutCapture

Type

PointerEventHandler

Default

-


onPointerOver

Type

PointerEventHandler

Default

-


onPointerOverCapture

Type

PointerEventHandler

Default

-


onPointerUp

Type

PointerEventHandler

Default

-


onPointerUpCapture

Type

PointerEventHandler

Default

-


onProgress

Type

ReactEventHandler

Default

-


onProgressCapture

Type

ReactEventHandler

Default

-


onRateChange

Type

ReactEventHandler

Default

-


onRateChangeCapture

Type

ReactEventHandler

Default

-


onReset

Type

FormEventHandler

Default

-


onResetCapture

Type

FormEventHandler

Default

-


onResize

Type

ReactEventHandler

Default

-


onResizeCapture

Type

ReactEventHandler

Default

-


onScroll

Type

UIEventHandler

Default

-


onScrollCapture

Type

UIEventHandler

Default

-


onSeeked

Type

ReactEventHandler

Default

-


onSeekedCapture

Type

ReactEventHandler

Default

-


onSeeking

Type

ReactEventHandler

Default

-


onSeekingCapture

Type

ReactEventHandler

Default

-


onSelect

Type

ReactEventHandler

Default

-


onSelectCapture

Type

ReactEventHandler

Default

-


onStalled

Type

ReactEventHandler

Default

-


onStalledCapture

Type

ReactEventHandler

Default

-


onSubmit

Type

FormEventHandler

Default

-


onSubmitCapture

Type

FormEventHandler

Default

-


onSuspend

Type

ReactEventHandler

Default

-


onSuspendCapture

Type

ReactEventHandler

Default

-


onTimeUpdate

Type

ReactEventHandler

Default

-


onTimeUpdateCapture

Type

ReactEventHandler

Default

-


onTouchCancel

Type

TouchEventHandler

Default

-


onTouchCancelCapture

Type

TouchEventHandler

Default

-


onTouchEnd

Type

TouchEventHandler

Default

-


onTouchEndCapture

Type

TouchEventHandler

Default

-


onTouchMove

Type

TouchEventHandler

Default

-


onTouchMoveCapture

Type

TouchEventHandler

Default

-


onTouchStart

Type

TouchEventHandler

Default

-


onTouchStartCapture

Type

TouchEventHandler

Default

-


onTransitionEnd

Type

TransitionEventHandler

Default

-


onTransitionEndCapture

Type

TransitionEventHandler

Default

-


onVolumeChange

Type

ReactEventHandler

Default

-


onVolumeChangeCapture

Type

ReactEventHandler

Default

-


onWaiting

Type

ReactEventHandler

Default

-


onWaitingCapture

Type

ReactEventHandler

Default

-


onWheel

Type

WheelEventHandler

Default

-


onWheelCapture

Type

WheelEventHandler

Default

-


prefix

Type

string

Default

-


property

Type

string

Default

-


radioGroup

Type

string

Default

-


ref

Type

LegacyRef

Default

-


rel

Type

string

Default

-


resource

Type

string

Default

-


results

Type

number

Default

-


rev

Type

string

Default

-


role

Type

AriaRole

Default

-


rotate180

Description

Should children rotate 180 degrees

Type

boolean

Default

false


rotate45

Description

Should children rotate 45 degrees

Type

boolean

Default

false


rotate90

Description

Should children rotate 90 degrees

Type

boolean

Default

false


scale

Description

Should children scale in/out

Type

boolean

Default

false


security

Type

string

Default

-


slideBottom

Description

Should children slide in/out from the bottom of the screen

Type

boolean

Default

false


slideLeft

Description

Should children slide in/out from the left of the screen

Type

boolean

Default

false


slideRight

Description

Should children slide in/out from the right of the screen

Type

boolean

Default

false


slideTop

Description

Should children slide in/out from the top of the screen

Type

boolean

Default

false


slot

Type

string

Default

-


spellCheck

Type

Booleanish

Default

-


suppressContentEditableWarning

Type

boolean

Default

-


suppressHydrationWarning

Type

boolean

Default

-


tabIndex

Type

number

Default

-


title

Type

string

Default

-


translate

Type

yes | no

Default

-


typeof

Type

string

Default

-


unmountOnExit

Description

If

Type

boolean

Default

false


unselectable

Type

off | on

Default

-


vocab

Type

string

Default

-


On this page

Deploys by Netlify