Skip to content

Commit 6b6b2c4

Browse files
authored
TagGroup docs adding textValue to complex item examples (#4714)
1 parent 435f6df commit 6b6b2c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/@react-spectrum/tag/docs/TagGroup.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ TagGroup supports an `onAction` handler that, when used with the `actionLabel` p
155155

156156
```tsx example
157157
<TagGroup aria-label="TagGroup with icons example">
158-
<Item>
158+
<Item textValue="News">
159159
<News />
160160
<Text>News</Text>
161161
</Item>
162-
<Item>
162+
<Item textValue="Travel">
163163
<Airplane />
164164
<Text>Travel</Text>
165165
</Item>
166-
<Item>
166+
<Item textValue="Gaming">
167167
<Game />
168168
<Text>Gaming</Text>
169169
</Item>
170-
<Item>
170+
<Item textValue="Shopping">
171171
<ShoppingCart />
172172
<Text>Shopping</Text>
173173
</Item>
@@ -178,19 +178,19 @@ TagGroup supports an `onAction` handler that, when used with the `actionLabel` p
178178

179179
```tsx example
180180
<TagGroup aria-label="TagGroup with avatars example">
181-
<Item>
181+
<Item textValue="Person 1">
182182
<Avatar src="https://i.imgur.com/kJOwAdv.png" />
183183
<Text>Person 1</Text>
184184
</Item>
185-
<Item>
185+
<Item textValue="Person 2">
186186
<Avatar src="https://i.imgur.com/kJOwAdv.png" />
187187
<Text>Person 2</Text>
188188
</Item>
189-
<Item>
189+
<Item textValue="Person 3">
190190
<Avatar src="https://i.imgur.com/kJOwAdv.png" />
191191
<Text>Person 3</Text>
192192
</Item>
193-
<Item>
193+
<Item textValue="Person 4">
194194
<Avatar src="https://i.imgur.com/kJOwAdv.png" />
195195
<Text>Person 4</Text>
196196
</Item>

0 commit comments

Comments
 (0)