diff --git a/docs/props.md b/docs/props.md index 452749e..da6cba8 100644 --- a/docs/props.md +++ b/docs/props.md @@ -143,6 +143,14 @@ Whether the select should display a loading state. When `true`, the select will A prop to control the menu open state programmatically. When set to `true`, the menu will be open. When set to `false`, the menu will be closed. +## hideSelectedOptions + +**Type**: `boolean` + +**Default**: `true` + +When set to `true` with `isMulti`, selected options won't appear in the options menu. Set it to `false` to show selected options in the menu. + ## shouldAutofocusOption **Type**: `boolean` diff --git a/docs/slots.md b/docs/slots.md index 5655e93..23cd349 100644 --- a/docs/slots.md +++ b/docs/slots.md @@ -12,15 +12,25 @@ If you are not familiar with Vue's slots, you can read more about them [here](ht ## option -**Type**: `slotProps: { option: Option }` +**Type**: + +```ts +slotProps: { + option: Option; + index: number; + isFocused: boolean; + isSelected: boolean; + isDisabled: boolean; +} +``` -Customize the rendered template of an option inside the menu. You can use the slot props to retrieve the current menu option that will be rendered. +Customize the rendered template of an option inside the menu. You can use the slot props to retrieve the current menu option that will be rendered in order to have more context and flexbility. ```vue