Skip to content

Commit c0aaee2

Browse files
ElreyBebrillhart
authored andcommitted
add div to surround Appear tag children (#598)
* add div to surround Appear tag children * update readme to reflect the usage of CodePane inside an Appear tag
1 parent 89c6ad9 commit c0aaee2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ReactJS based Presentation Library
3939
- [Magic](#magic)
4040
- [Element Tags](#element-tags)
4141
- [Appear](#appear)
42+
- [Anim](#anim)
4243
- [BlockQuote, Quote and Cite (Base)](#blockquote-quote-and-cite-base)
4344
- [CodePane (Base)](#codepane-base)
4445
- [Code (Base)](#code-base)
@@ -626,6 +627,18 @@ This tag does not extend from Base. It's special. Wrapping elements in the appea
626627

627628
For best performance, wrap the contents of this tag in a native DOM element like a `<div>` or `<span>`.
628629

630+
_NOTE: When using `CodePane` tag inside an `Appear` tag you must wrap it inside a `<div>`_
631+
632+
```jsx
633+
....
634+
<Appear>
635+
<div>
636+
<CodePane source="CodePane" lang="js" />
637+
</div>
638+
<Appear>
639+
....
640+
```
641+
629642
| Name | PropType | Description | Default |
630643
| ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
631644
| order | PropTypes.number | An optional integer starting at 1 for the presentation order of the Appear tags within a slide. If a slide contains ordered and unordered Appear tags, the unordered will show first. |
@@ -642,6 +655,8 @@ If you want extra flexibility with animated animation, you can use the Anim comp
642655

643656
For best performance, wrap the contents of this tag in a native DOM element like a `<div>` or `<span>`.
644657

658+
_NOTE: `CodePane` tag can not be used inside a `Anim` tag._
659+
645660
| Name | PropType | Description | Default |
646661
| ------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- |
647662
| order | PropTypes.number | An optional integer for the presentation order of the Appear tags within a slide. If a slide contains ordered and unordered Appear tags, the unordered will show first. | Starting at `1` |

0 commit comments

Comments
 (0)