Skip to content

Commit 31f992f

Browse files
committed
Update docs to include childComponent.
1 parent 77b4b47 commit 31f992f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Using `react-css-transition-replace` provides two distinct benefits:
1515

1616
Animations are fully configurable with CSS, including having the entering component wait to enter until
1717
the leaving component's animation completes. Following suit with the
18-
[React.js API](https://facebook.github.io/react/docs/animation.html#getting-started) the one caveat is
18+
[React.js API](https://facebook.github.io/react/docs/animation.html) the one caveat is
1919
that the transition duration must be specified in JavaScript as well as CSS.
2020

2121
[Live Examples](http://marnusw.github.io/react-css-transition-replace) |
@@ -56,6 +56,10 @@ It is also possible to remove the child component (i.e. leave `ReactCSSTransitio
5656
which will animate the `height` going to zero along with the `leave` transition. Similarly, a single child
5757
can be added to an empty `ReactCSSTransitionReplace`, triggering the inverse animation.
5858

59+
By default a `span` is rendered as a wrapper of the child components. Each child is also wrapped in a `span`
60+
used in the positioning of the actual rendered child. These can be overridden with the `component` and
61+
`childComponent` props respectively.
62+
5963
### Cross-fading two components
6064

6165
The `ReactCSSTransitionReplace` component is used exactly like its `ReactCSSTransitionGroup` counterpart:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-css-transition-replace",
3-
"version": "2.2.0",
3+
"version": "3.0.0-beta.1",
44
"description": "A React component to animate replacing one element with another.",
55
"main": "lib/ReactCSSTransitionReplace.js",
66
"repository": {

0 commit comments

Comments
 (0)