Skip to content

Commit

Permalink
Prevent Select listbox to grow out of viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Oct 28, 2024
1 parent 6b69ce8 commit 470e1e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/input/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,24 @@ type BaseSelectProps = CompositeProps & {
/**
* Indicates how overflowing content should be handled in the listbox.
*
<<<<<<< HEAD
* - `truncate`: Truncate the options via `text-overflow: ellipsis`, so that
* they all fit in one line. This is the default value.
* - `wrap`: Let options content wrap onto multiple lines via
* `white-space: normal`
*
* Complex content may still need to provide its own styling to handle content
* overflow.
=======
* - `truncate`: Truncate the options so that they all fit in one line. An
* ellipsis will be rendered where needed.
* This is the default value.
* - `wrap`: Let options content wrap multiple lines so that all content is
* visible.
*
* This behavior can be also overwritten by providing more complex options
* content.
>>>>>>> 51ceff5 (Prevent Select listbox to grow out of viewport)
*/
listboxOverflow?: ListboxOverflow;
};
Expand Down

0 comments on commit 470e1e7

Please sign in to comment.