We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SelectOption
1 parent 41ab76a commit f07fc5eCopy full SHA for f07fc5e
packages/browser-utils/src/types/html/index.ts
@@ -31,3 +31,12 @@ export const InputType = {
31
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types}
32
*/
33
export type InputType = (typeof InputType)[keyof typeof InputType];
34
+
35
+/**
36
+ * Represents an `option` element's data. May be used for `select`, `datalist` and similar
37
+ * elements.
38
+ */
39
+export interface SelectOption {
40
+ value: string;
41
+ label: string;
42
+}
0 commit comments