✨(react) add select menu empty placeholder
Previously if the menu was opened and no there were no options to be displayed it was just showing a tiny empty menu, this commit adds an empty placeholder in order to make it clearer that the list is empty.
This commit is contained in:
@@ -213,6 +213,14 @@ export const Error = {
|
||||
},
|
||||
};
|
||||
|
||||
export const NoOptions = {
|
||||
render: Template,
|
||||
args: {
|
||||
label: "No options available",
|
||||
options: [],
|
||||
},
|
||||
};
|
||||
|
||||
export const FormExample = () => {
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user