neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+19
View File
@@ -0,0 +1,19 @@
'use client';
/**
* If `focusSource` is present, attempt to pass `focusVisible` through `focus()` options.
* Fall back to a plain focus call when the browser does not support it.
*/
export default function focusWithVisible(element, focusSource) {
if (focusSource == null) {
element.focus();
return;
}
try {
element.focus({
focusVisible: focusSource === 'keyboard'
});
} catch (error) {
element.focus();
}
}