Skip to content

Commit

Permalink
docs(stack): update to use correct tag prop
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 22, 2024
1 parent 0f1a77a commit f5bbd9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/components/Stack.svx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion tests/Stack.test.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit f5bbd9a

Please sign in to comment.