mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs(stack): update to use correct tag
prop (#1964)
This commit is contained in:
parent
0f1a77a3fc
commit
adab556fa2
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue