@inherits DComponentBase @* daisyUI Timeline: https://daisyui.com/components/timeline/ . Horizontal unless Direction is Vertical (for a responsive switch add lg:timeline-horizontal in Class). Every DTimelineItem draws its connecting
on both sides; the two arbitrary variants here hide the outer ends, so the line runs only between items. *@ @code { [Parameter] public RenderFragment ChildContent { get; set; } [Parameter] public DDirection Direction { get; set; } /// Put every item on one side of the line (timeline-compact). [Parameter] public bool Compact { get; set; } /// Align the icon with the start of the content instead of its middle (timeline-snap-icon). [Parameter] public bool SnapIcon { get; set; } string CssClass => Cx("timeline", Direction == DDirection.Vertical ? "timeline-vertical" : null, Compact ? "timeline-compact" : null, SnapIcon ? "timeline-snap-icon" : null, "[&>li:first-child>hr:first-child]:hidden [&>li:last-child>hr:last-child]:hidden", Class); }