We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10fee3d commit 26c70b7Copy full SHA for 26c70b7
src/demos/input/demoGetTextValue.tsx
@@ -0,0 +1,15 @@
1
+export function demoGetTextValue(value: string): string {
2
+ const texts: Record<string, string> = {
3
+ "0": "Short",
4
+ "1": "Medium length option",
5
+ "2": "This is a very long option text that should vary the length significantly",
6
+ "3": "Opt",
7
+ "4": "Another medium length option here",
8
+ "5": "Longer option with more words to make it longer",
9
+ "6": "S",
10
+ "7": "Medium",
11
+ "8": "This is an even longer option text that will definitely vary the length",
12
+ "9": "XL",
13
+ }
14
+ return texts[value] || `Option ${value}`
15
+}
0 commit comments