Skip to content

Commit de6e1f1

Browse files
authored
docs: Change tag prop to tag attribute (#1237)
1 parent 8e29e0f commit de6e1f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/migration/transition-group.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ badges:
88

99
## Overview
1010

11-
`<transition-group>` no longer renders a root element by default, but can still create one with the `tag` prop.
11+
`<transition-group>` no longer renders a root element by default, but can still create one with the `tag` attribute.
1212

1313
## 2.x Syntax
1414

15-
In Vue 2, `<transition-group>`, like other custom components, needed a root element, which by default was a `<span>` but was customizable via the `tag` prop.
15+
In Vue 2, `<transition-group>`, like other custom components, needed a root element, which by default was a `<span>` but was customizable via the `tag` attribute.
1616

1717
```html
1818
<transition-group tag="ul">
@@ -26,7 +26,7 @@ In Vue 2, `<transition-group>`, like other custom components, needed a root elem
2626

2727
In Vue 3, we have [fragment support](/guide/migration/fragments.html), so components no longer _need_ a root node. Consequently, `<transition-group>` no longer renders one by default.
2828

29-
- If you already have the `tag` prop defined in your Vue 2 code, like in the example above, everything will work as before
29+
- If you already have the `tag` attribute defined in your Vue 2 code, like in the example above, everything will work as before
3030
- If you didn't have one defined _and_ your styling or other behaviors relied on the presence of the `<span>` root element to work properly, simply add `tag="span"` to the `<transition-group>`:
3131

3232
```html

0 commit comments

Comments
 (0)