diff --git a/packages/big-design/src/components/Select/types.ts b/packages/big-design/src/components/Select/types.ts index d9eca240c..aa2751933 100644 --- a/packages/big-design/src/components/Select/types.ts +++ b/packages/big-design/src/components/Select/types.ts @@ -32,6 +32,7 @@ interface BaseItem extends Omit, 'value'> { description?: string; disabled?: boolean; icon?: React.ReactElement; + tooltip?: string; } export interface SelectOption extends BaseItem { diff --git a/packages/docs/PropTables/DropdownPropTable.tsx b/packages/docs/PropTables/DropdownPropTable.tsx index 83bfd9463..0aaa847ed 100644 --- a/packages/docs/PropTables/DropdownPropTable.tsx +++ b/packages/docs/PropTables/DropdownPropTable.tsx @@ -124,11 +124,7 @@ const dropdownItemProps: Prop[] = [ { name: 'tooltip', types: 'string', - description: ( - <> - Adds tooltip for disabled item. Default placement is set to right. - - ), + description: <>Adds tooltip for disabled item., }, { name: 'type', @@ -184,8 +180,8 @@ const dropdownLinkProps: Prop[] = [ }, { name: 'tooltip', - types: "{ message: string, placement?: 'left' | 'right' }", - description: "Adds tooltip for disabled item. Placement is optional, if not passed - 'left' is set.", + types: 'string', + description: <>Adds tooltip for disabled item., }, { name: 'type', diff --git a/packages/docs/PropTables/SelectPropTable.tsx b/packages/docs/PropTables/SelectPropTable.tsx index d7ae0a09d..b63869a77 100644 --- a/packages/docs/PropTables/SelectPropTable.tsx +++ b/packages/docs/PropTables/SelectPropTable.tsx @@ -164,6 +164,11 @@ const selectOptionProps: Prop[] = [ ), }, + { + name: 'tooltip', + types: 'string', + description: <>Adds tooltip for disabled item., + }, { name: 'icon', types: ( @@ -233,6 +238,11 @@ const selectActionProps: Prop[] = [ ), }, + { + name: 'tooltip', + types: 'string', + description: <>Adds tooltip for disabled item., + }, { name: 'icon', types: (