mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs: add ClickableTile
example, notes on keyed props (#1184)
* docs(clickable-tile): add "Prevent default behavior" example * docs: add note that `items` object requires a unique `id` * docs: remove note on selectedId * docs(data-table): explain how header keys work
This commit is contained in:
parent
1017e80198
commit
233edf3358
5 changed files with 32 additions and 8 deletions
|
@ -7,10 +7,10 @@ components: ["Dropdown", "DropdownSkeleton"]
|
|||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
`Dropdown` is keyed for performance reasons.
|
||||
|
||||
<InlineNotification svx-ignore lowContrast 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>
|
||||
<div class="body-short-01">Every <code>items</code> object must have a unique "id" property.</div>
|
||||
</InlineNotification>
|
||||
|
||||
### Default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue