ITimelineContext
interface
Component Context
Context object provided by OrigamTimeline to its nested OrigamTimelineItem children via inject. Carries the parent layout direction and shared visual props without requiring explicit prop forwarding.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- siderequisTTimelineSide
- Layout side for item content: left of the dot (start), right of the dot (end), or alternating.
- truncateLinerequisboolean
- Whether to truncate (hide) the connecting line after the last item.
- orientationrequisTTimelineOrientation
- Layout direction of the timeline: vertical (top to bottom) or horizontal (left to right).
- colorstring
- Shared dot/line color inherited by all child items unless overridden per item.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Injecting timeline context in a child item