ToTop
Blendet nach einer Bildschirmhöhe einen Rücksprung zum Seitenanfang ein und gibt den Fokus an main zurück.
src/components/ToTop.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use directly
Entry point: src/components/ToTop.astro
- Einmal pro Seite, ein fokussierbares main mit id main bereitstellen.
- Lange Wege und Reduced Motion springen direkt statt die gesamte Story rückwärts abzuspielen.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props { locale: Locale }Astro.props
Bindings and defaults read from source; these do not add inferred types.
locale
Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/ToTop.astro
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ToTop.astro
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/ToTop.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
./Zeichen.astro·src/components/Zeichen.astro@/components/ui/icon-button·src/components/ui/icon-button.tsx@/lib/utils·src/lib/utils.ts@/i18n/index.ts·src/i18n/index.ts@/scripts/theme.ts·src/scripts/theme.ts