docs(stack): update to use correct tag prop (#1964)

This commit is contained in:
Eric Liu 2024-04-21 21:31:34 -07:00 committed by GitHub
commit adab556fa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ By default, the `Stack` component has a vertical orientation and a gap scale of
By default, the `Stack` component uses a `div` element. You can specify a different element using the `as` prop.
<Stack as="ul" gap={3}>
<Stack tag="ul" gap={3}>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
@ -269,7 +269,7 @@ Set the `orientation` prop to `horizontal` to create a horizontal stack.
By default, the `Stack` component uses a `div` element. You can specify a different element using the `as` prop.
<Stack orientation="horizontal" as="ul" gap={3}>
<Stack orientation="horizontal" tag="ul" gap={3}>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>

View file

@ -3,4 +3,4 @@
</script>
<Stack gap="200px" orientation="vertical">Content</Stack>
<Stack gap="{13}" orientation="horizontal">Content</Stack>
<Stack tag="ol" gap="{13}" orientation="horizontal">Content</Stack>