TextField input types and autofill
Set the native type and autofill hint on TextField.Input, choose the BreakpointsIndicator starting corner, and import hook types.
New features
- Added
typeandautoCompleteto TextField.Input. Both take precedence over the matchingattributesvalues. - Added
defaultCornerto BreakpointsIndicator to set the starting viewport corner when no corner is saved. - Added hook props type exports:
UseInteractOutsidePropsfor useInteractOutside,UseRovingFocusPropsfor useRovingFocus,UseScrollLockPropsfor useScrollLock, andShortcutsMapandUseShortcutsPropsfor useShortcuts. - Added hook return type exports:
UseKeyboardFocusModeReturnfor useKeyboardFocusMode,UseScrollLockReturnfor useScrollLock,UseShortcutsReturnfor useShortcuts, andUseSwitchReturnfor useSwitch.
Breaking changes
- Removed the forced
autocomplete="off"from TextField.Input, so browsers can now offer autofill. SetautoComplete="off"on inputs that should keep autofill disabled.
Before → After
// Before
<TextField.Input name="code" />
// After
<TextField.Input name="code" autoComplete="off" />