docs: add breaking change notice to ComboBox, Dropdown docs (#1018)

This commit is contained in:
Eric Liu 2022-01-18 19:33:33 -08:00 committed by GitHub
commit 52705bae03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -3,10 +3,16 @@ components: ["Dropdown", "DropdownSkeleton"]
---
<script>
import { Dropdown, DropdownSkeleton } from "carbon-components-svelte";
import { Dropdown, DropdownSkeleton, InlineNotification } from "carbon-components-svelte";
import Preview from "../../components/Preview.svelte";
</script>
<InlineNotification svx-ignore title="Note:" kind="info" hideCloseButton>
<div class="body-short-01">
Since version 0.53, <strong>selectedIndex</strong> has been replaced with <strong>selectedId</strong>.
</div>
</InlineNotification>
### Default
<Dropdown titleText="Contact" selectedId="0" items="{[{id: "0", text: "Slack"},