forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFadePage.js
More file actions
76 lines (70 loc) · 2.45 KB
/
Copy pathFadePage.js
File metadata and controls
76 lines (70 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import { Alert } from 'reactstrap';
import PageTitle from '../UI/PageTitle';
import SectionTitle from '../UI/SectionTitle';
import FadeExample from '../examples/Fade';
const FadeExampleSource = require('!!raw!../examples/Fade');
export default class FadePage extends React.Component {
render() {
return (
<div>
<PageTitle title="Fade" />
<div className="docs-example">
<FadeExample />
</div>
<pre>
<PrismCode className="language-jsx">
{FadeExampleSource}
</PrismCode>
</pre>
<SectionTitle>Properties</SectionTitle>
<pre>
<PrismCode className="language-jsx">
{`Fade.propTypes = {
// Controls if the fade is currently showing or not (default: true)
in: PropTypes.bool,
// All of these match [react-transition-group/Transition](https://reactcommunity.org/react-transition-group/#Transition) props
mountOnEnter: PropTypes.bool,
unmountOnExit: PropTypes.bool,
appear: PropTypes.bool, // (default: true)
enter: PropTypes.bool, // (default: true)
exit: PropTypes.bool, // (default: true)
timeout: PropTypes.oneOfType([ // (default: 150)
PropTypes.number,
PropTypes.shape({
enter: PropTypes.number,
exit: PropTypes.number,
}).isRequired,
]),
addEndListener: PropTypes.func,
onEnter: PropTypes.func,
onEntering: PropTypes.func,
onEntered: PropTypes.func,
onExit: PropTypes.func,
onExiting: PropTypes.func,
onExited: PropTypes.func,
// The component(s) that should be faded
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
// Pass in a component or primitive component name to override the default element
// (default: 'div')
tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
// Class always applied to the Fade element (default: 'fade')
baseClass: PropTypes.string,
// Class applied to transition the Fade element in (default: 'show')
baseClassActive: PropTypes.string,
// Other classes that should always be applied
className: PropTypes.string,
cssModule: PropTypes.object,
// Any other props provided will be applied to the element created (specified by tag)
}`}
</PrismCode>
</pre>
</div>
);
}
}