feat(breaking): selectedIndex -> selectedId in Dropdown

This commit is contained in:
K.Kiyokawa 2022-01-14 12:00:22 +09:00
commit aa6396f02a
7 changed files with 47 additions and 44 deletions

View file

@ -25,10 +25,9 @@ export interface DropdownProps
itemToString?: (item: DropdownItem) => string;
/**
* Specify the selected item index
* @default -1
* Specify the selected item id
*/
selectedIndex?: number;
selectedId?: DropdownItemId;
/**
* Specify the type of dropdown