How would I incorporate a Spinner into a Dropdown as a placeholder? #33549
Answered
by
claytonschroeder
trevonmckay
asked this question in
Q&A
-
I'm using the Dropdown component that is dependent on options from an external source. While the options are loading, I'd like to display a spinner and the text "Loading" as the placeholder. Based on the available props I don't see how this can be achieved. |
Beta Was this translation helpful? Give feedback.
Answered by
claytonschroeder
Jan 6, 2025
Replies: 1 comment 1 reply
-
You can pass a Spinner to the placeholder prop on the Dropdown component. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
trevonmckay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a Spinner to the placeholder prop on the Dropdown component.
https://codesandbox.io/p/sandbox/tk9fjm