CaseBars
Vergleicht fünfstufige Antwortverteilungen auf einer divergierenden Skala und hebt die Veränderung von Zustimmung und Ablehnung hervor.
src/components/case/CaseBars.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/case/CaseData.astro
- Erwartet mindestens eine Gruppe mit genau fünf Zahlen und positiver Summe; die Implementierung indiziert Stufen 1–5, obwohl das Schema kürzere Arrays zulässt.
- Die eigentliche Grafik ist aria-hidden; zugänglich bleiben Titel und Veränderungskennzahlen der ersten und letzten Gruppe, keine vollständige Texttabelle aller Verteilungen.
- Die einmalige Einblendung respektiert reduzierte Bewegung; Zahlen und Gruppen benötigen belegte Quellen.
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 {block:{mode?:'stack';levels?:{t:string;b?:string}[];focus?:number;title:string;sub:string;label:string;low:string;high:string;groups:{name:string;meta:string;values:number[]}[]};locale:Locale}Astro.props
Bindings and defaults read from source; these do not add inferred types.
blocklocale
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
Documentation
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/case/CaseBlock.astro
- src/components/case/CaseData.astro
- src/components/case/CaseBars.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
@/i18n·src/i18n/index.ts@/components/Zeichen.astro·src/components/Zeichen.astro./CaseTip.astro·src/components/case/CaseTip.astro@/components/ui/badge·src/components/ui/badge.tsx