diff --git a/src/components/input/Select.tsx b/src/components/input/Select.tsx index 9aaa5686..2f54afb7 100644 --- a/src/components/input/Select.tsx +++ b/src/components/input/Select.tsx @@ -49,6 +49,8 @@ export type SelectOptionProps = { /** Ref associated with the option's container element */ elementRef?: Ref; + /** Value to be passed to the option's `title` attribute */ + title?: string; }; function optionChildren( @@ -70,6 +72,7 @@ function SelectOption({ disabled = false, classes, elementRef, + title, }: SelectOptionProps) { const checkboxRef = useRef(null); const checkboxContainerRef = useRef(null); @@ -187,6 +190,7 @@ function SelectOption({ // This is intended to be focused with arrow keys tabIndex={-1} ref={downcastRef(optionRef)} + title={title} >
+ + + + If provided, it is set as the option{"'"}s title{' '} + attribute. + + + string | undefined + + + undefined + + +