@@ -45,6 +45,7 @@ export default function Playground() {
45
45
const [ startWeekOn , setStartWeekOn ] = useState < WeekStringType > ( "mon" ) ;
46
46
const [ required , setRequired ] = useState ( false ) ;
47
47
const [ popoverDirection , setPopoverDirection ] = useState < PopoverDirectionType > ( "down" ) ;
48
+ const [ tabIndex , setTabIndex ] = useState < number | undefined > ( undefined ) ;
48
49
49
50
return (
50
51
< div className = "px-4 py-8" >
@@ -114,6 +115,7 @@ export default function Playground() {
114
115
i18n = { i18n }
115
116
disabled = { disabled }
116
117
inputClassName = { inputClassName }
118
+ inputTabIndex = { tabIndex }
117
119
containerClassName = { containerClassName }
118
120
toggleClassName = { toggleClassName }
119
121
displayFormat = { displayFormat }
@@ -244,6 +246,23 @@ export default function Playground() {
244
246
</ label >
245
247
</ div >
246
248
</ div >
249
+ < div className = "mb-2 w-1/2 sm:w-full" >
250
+ < div className = "inline-flex items-center" >
251
+ < input
252
+ type = "number"
253
+ className = "mr-2 w-24 rounded"
254
+ id = "tabIndex"
255
+ value = { tabIndex }
256
+ onChange = { function ( e ) {
257
+ console . log ( e . target . value , parseInt ( e . target . value ) ) ;
258
+ return setTabIndex ( parseInt ( e . target . value ) ) ;
259
+ } }
260
+ />
261
+ < label className = "block" htmlFor = "required" >
262
+ Tab Index
263
+ </ label >
264
+ </ div >
265
+ </ div >
247
266
</ div >
248
267
249
268
< div className = "w-full sm:w-1/3 pr-2 flex flex-col" >
0 commit comments