@@ -45,6 +45,7 @@ export default function Playground() {
4545 const [ startWeekOn , setStartWeekOn ] = useState < WeekStringType > ( "mon" ) ;
4646 const [ required , setRequired ] = useState ( false ) ;
4747 const [ popoverDirection , setPopoverDirection ] = useState < PopoverDirectionType > ( "down" ) ;
48+ const [ tabIndex , setTabIndex ] = useState < number | undefined > ( undefined ) ;
4849
4950 return (
5051 < div className = "px-4 py-8" >
@@ -114,6 +115,7 @@ export default function Playground() {
114115 i18n = { i18n }
115116 disabled = { disabled }
116117 inputClassName = { inputClassName }
118+ inputTabIndex = { tabIndex }
117119 containerClassName = { containerClassName }
118120 toggleClassName = { toggleClassName }
119121 displayFormat = { displayFormat }
@@ -244,6 +246,23 @@ export default function Playground() {
244246 </ label >
245247 </ div >
246248 </ 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 >
247266 </ div >
248267
249268 < div className = "w-full sm:w-1/3 pr-2 flex flex-col" >
0 commit comments