CaseNavigation
Steuert Kapitel- und Pre-Read-Dialog sowie die Navigation zu vorhandenen Case-Ankern.
src/components/islands/CaseNavigation.tsxSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/case/CasePage.astro
- chapters/readTarget/summary müssen zu echten eindeutigen Ankern derselben Seite passen.
- Shortcut-Abschaltung, Textfeld-Ausnahmen, Fokusübergabe und Reduced Motion erhalten.
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.
type Chapter={id:string;n:string;label:string;h2?:string;art?:string};type Props={chapters:Chapter[];readTarget?:string;intro:string;summary:{href:string;t:string}[];groups?:{t:string;ids:string[]}[];status?:{tone:string;k:string;v:string}[];tldr?:{t:string;b:string}[];caseTitle?:string;readTime?:string;head?:{context?:string;props?:{k:string;v:string;s?:string}[]};labels:{chapters:string;preRead:string;previous:string;next:string;close:string;hint:string;groupsTitle?:string;chaptersOf?:string;readOf?:string;readDone?:string;youAreHere?:string;readLabel?:string;decisionsTitle?:string;toEvidence?:string;stateTitle?:string;tldrKeys?:string}};CaseNavigation({chapters,readTarget,intro,summary,groups,status,tldr,caseTitle,readTime,head,labels}:Props)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/islands/CaseNavigation.tsx
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/islands/CaseNavigation.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/LeetReady·src/components/LeetReady.tsxreact@/components/ui/dialog·src/components/ui/dialog.tsx@/scripts/case-navigation·src/scripts/case-navigation.ts