Skip to content

Commit 81875ed

Browse files
committed
update content elements to point to mdn
1 parent 23e81e4 commit 81875ed

16 files changed

+21
-21
lines changed

packages/dev/s2-docs/pages/s2/ActionButton.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function PendingButton() {
7474

7575
## API
7676

77-
```tsx links={{ActionButton: '#actionbutton', Avatar: 'Avatar', Icon: 'icons'}}
77+
```tsx links={{ActionButton: '#actionbutton', Avatar: 'Avatar', Icon: 'icons', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span'}}
7878
<ActionButton>
7979
<Icon /> or <Avatar />
8080
<Text />

packages/dev/s2-docs/pages/s2/Button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function PendingButton() {
7474

7575
## API
7676

77-
```tsx links={{Button: '#button', Icon: 'icons'}}
77+
```tsx links={{Button: '#button', Icon: 'icons', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span'}}
7878
<Button>
7979
<Icon />
8080
<Text />

packages/dev/s2-docs/pages/s2/Card.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ import {Skeleton, Card, CardPreview, Image, Content, Text} from '@react-spectrum
255255

256256
### Card
257257

258-
```tsx links={{Image: 'Image', Illustration: 'illustrations', ActionMenu: 'ActionMenu'}}
258+
```tsx links={{Image: 'Image', Illustration: 'illustrations', ActionMenu: 'ActionMenu', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span', Footer: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'}}
259259
<Card>
260260
<CardPreview>
261261
<Image /> or <Illustration />
@@ -273,7 +273,7 @@ import {Skeleton, Card, CardPreview, Image, Content, Text} from '@react-spectrum
273273

274274
### AssetCard
275275

276-
```tsx links={{Image: 'Image', Illustration: 'illustrations', ActionMenu: 'ActionMenu'}}
276+
```tsx links={{Image: 'Image', Illustration: 'illustrations', ActionMenu: 'ActionMenu', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span'}}
277277
<AssetCard>
278278
<CardPreview>
279279
<Image /> or <Illustration />
@@ -290,7 +290,7 @@ import {Skeleton, Card, CardPreview, Image, Content, Text} from '@react-spectrum
290290

291291
### UserCard
292292

293-
```tsx links={{Image: 'Image', ActionMenu: 'ActionMenu'}}
293+
```tsx links={{Image: 'Image', ActionMenu: 'ActionMenu', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span', Footer: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'}}
294294
<UserCard>
295295
<CardPreview>
296296
<Image />
@@ -309,7 +309,7 @@ import {Skeleton, Card, CardPreview, Image, Content, Text} from '@react-spectrum
309309

310310
### ProductCard
311311

312-
```tsx links={{Image: 'Image', ActionMenu: 'ActionMenu', Button: 'Button', LinkButton: 'LinkButton'}}
312+
```tsx links={{Image: 'Image', ActionMenu: 'ActionMenu', Button: 'Button', LinkButton: 'LinkButton', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span', Footer: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'}}
313313
<ProductCard>
314314
<CardPreview>
315315
<Image slot="preview" />

packages/dev/s2-docs/pages/s2/ComboBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ import {ComboBox, ComboBoxItem} from '@react-spectrum/s2';
442442

443443
## API
444444

445-
```tsx links={{ComboBox: '#combobox', ComboBoxItem: '#comboboxitem', ComboBoxSection: '#comboboxsection', Icon: 'icons', Avatar: 'Avatar'}}
445+
```tsx links={{ComboBox: '#combobox', ComboBoxItem: '#comboboxitem', ComboBoxSection: '#comboboxsection', Icon: 'icons', Avatar: 'Avatar', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span', Header: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements'}}
446446
<ComboBox>
447447
<ComboBoxItem>
448448
<Icon /> or <Avatar />

packages/dev/s2-docs/pages/s2/ContextualHelp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {ContextualHelp, Heading, Content, Footer, Link} from '@react-spectrum/s2
2525

2626
## API
2727

28-
```tsx links={{ContextualHelp: '#contextualhelp'}}
28+
```tsx links={{ContextualHelp: '#contextualhelp', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Footer: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'}}
2929
<ContextualHelp>
3030
<Heading />
3131
<Content />

packages/dev/s2-docs/pages/s2/Dialog.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function DialogContainerExample() {
260260

261261
### Dialog
262262

263-
```tsx links={{ButtonGroup: 'ButtonGroup', Image:' Image'}}
263+
```tsx links={{ButtonGroup: 'ButtonGroup', Image:' Image', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements', Header: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div', Footer: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer'}}
264264
<Dialog>
265265
<Image slot="hero">
266266
<Heading slot="title" />
@@ -279,7 +279,7 @@ function DialogContainerExample() {
279279

280280
### FullscreenDialog
281281

282-
```tsx links={{ButtonGroup: 'ButtonGroup'}}
282+
```tsx links={{ButtonGroup: 'ButtonGroup', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements', Header: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div'}}
283283
<FullscreenDialog>
284284
<Heading slot="title" />
285285
<Header />

packages/dev/s2-docs/pages/s2/IllustratedMessage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import Image from '@react-spectrum/s2/illustrations/gradient/generic1/Image';
2929

3030
## API
3131

32-
```tsx links={{IllustratedMessage: '#illustratedmessage', ButtonGroup: 'ButtonGroup', Illustration: 'illustrations'}}
32+
```tsx links={{IllustratedMessage: '#illustratedmessage', ButtonGroup: 'ButtonGroup', Illustration: 'illustrations', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div'}}
3333
<IllustratedMessage>
3434
<Illustration />
3535
<Heading />

packages/dev/s2-docs/pages/s2/InlineAlert.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Example() {
5151

5252
## API
5353

54-
```tsx links={{InlineAlert: '#inlinealert'}}
54+
```tsx links={{InlineAlert: '#inlinealert', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements', Content: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div'}}
5555
<InlineAlert>
5656
<Heading />
5757
<Content />

packages/dev/s2-docs/pages/s2/LinkButton.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const description = 'Combines the functionality of a link with the appear
2222

2323
## API
2424

25-
```tsx links={{LinkButton: '#linkbutton', Icon: 'icons'}}
25+
```tsx links={{LinkButton: '#linkbutton', Icon: 'icons', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span'}}
2626
<LinkButton>
2727
<Icon />
2828
<Text />

packages/dev/s2-docs/pages/s2/Menu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ import {MenuTrigger, Menu, MenuItem, ActionButton} from '@react-spectrum/s2';
476476

477477
## API
478478

479-
```tsx links={{MenuTrigger: '#menutrigger', Button: 'Button', Menu: '#menu', MenuItem: '#menuitem', MenuSection: '#menusection', SubmenuTrigger: '#submenutrigger', Icon: 'icons', Image: 'Image'}}
479+
```tsx links={{MenuTrigger: '#menutrigger', Button: 'Button', Menu: '#menu', MenuItem: '#menuitem', MenuSection: '#menusection', SubmenuTrigger: '#submenutrigger', Icon: 'icons', Image: 'Image', Text: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span', Keyboard: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd', Header: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header', Heading: 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements'}}
480480
<MenuTrigger>
481481
<Button />
482482
<Menu>

0 commit comments

Comments
 (0)