diff --git a/docs/src/pages/components/ComboBox.svx b/docs/src/pages/components/ComboBox.svx index b5d11af5..d934e11f 100644 --- a/docs/src/pages/components/ComboBox.svx +++ b/docs/src/pages/components/ComboBox.svx @@ -18,6 +18,12 @@ items={[ {id: "2", text: "Fax"} ]} /> +### Custom slot + +Override the default slot to customize the display of each item. Access the item and index through the `let:` directive. + + + ### Selected id + import { ComboBox } from "carbon-components-svelte"; + + + +
+ {item.text} +
+
+ id: {item.id} - index: + {index} +
+
+ +