autoFocus
説明
If true, the first focusable element within the children will auto-focused once FocusLock mounts.
タイプ
booleanデフォルト
falseYamada UIにスターをあげる
スターFocusLockは、モーダルやダイアログなどの要素でフォーカスを制限し、フォーカスをその範囲内にロックすることで、アクセシビリティを向上させるコンポーネントです。
説明
If true, the first focusable element within the children will auto-focused once FocusLock mounts.
タイプ
booleanデフォルト
false説明
The ref of the wrapper for which the focus-lock wraps.
タイプ
RefObject<HTMLElement>説明
If true, focus trapping will be disabled.
タイプ
booleanデフォルト
false説明
ref of the element to return focus to when FocusLock unmounts.
タイプ
RefObject<FocusableElement>説明
ref of the element to receive focus initially.
タイプ
RefObject<FocusableElement>説明
If true, focus trapping will be disabled.
非推奨
Use disabled instead.
タイプ
booleanデフォルト
false説明
Enables aggressive focus capturing within iframes.
- If true: keep focus in the lock, no matter where lock is active.
- If false: allows focus to move outside of iframe.
タイプ
booleanデフォルト
false説明
If true, disables text selections inside, and outside focus lock.
タイプ
booleanデフォルト
false説明
If true, focus will be restored to the element that triggered the FocusLock once it unmounts.
タイプ
booleanデフォルト
falseGitHubでこのページを編集する