(react) add disable property to select option

Based on recent feedbacks, this feature was needed for consumer apps.

Resolve #60
This commit is contained in:
Nathan Vasse
2023-05-19 12:09:14 +02:00
committed by NathanVss
parent c11727976c
commit c93c8d2a2f
8 changed files with 119 additions and 14 deletions

View File

@@ -165,6 +165,14 @@ export const NotClearable = {
},
};
export const DisabledOptions = {
render: Template,
args: {
label: "Select a city",
options: OPTIONS.map((option, i) => ({ ...option, disabled: i % 3 === 0 })),
},
};
export const Success = {
render: Template,