feat: add BaseSelectNative component #3169
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new vendor component:
BaseSelectNative
. For the time being, this component is only used inFullPaginator
.Mature component libraries tend to have multiple flavors of select components to choose from. For example, a subsequent PR will add a
BaseSelectAsync
component which allows you to search for the option (ie: a user to send a message to).BaseSelect
has highly-customizable UX, but has slow rendering performance on lists that have potentially hundreds of options.BaseSelectNative
renders options very quickly, with the trade-off of having virtually no customizable UX for the select options.Before
![Screenshot 2025-02-02 at 6 25 55 PM](https://private-user-images.githubusercontent.com/3984985/408914851-f9464382-05ee-40ec-a5ff-035f9fa08d07.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDUzMjcsIm5iZiI6MTczOTM0NTAyNywicGF0aCI6Ii8zOTg0OTg1LzQwODkxNDg1MS1mOTQ2NDM4Mi0wNWVlLTQwZWMtYTVmZi0wMzVmOWZhMDhkMDcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDcyMzQ3WiZ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