Skip to content

Loading Orbit ​

dvk-loading-orbit renders a compact loading indicator based on the DataV Loading source: two concentric dashed rings rotate in opposite directions while cycling through the datav-kit default colors.

Loading data
html
<dvk-loading-orbit>Loading data</dvk-loading-orbit>

Props ​

NameTypeDefaultNotes
colorstringemptyOuter ring initial color. Falls back to --dvk-color-primary and then #18f0ff.
secondary-colorstringemptyInner ring initial color. Falls back to --dvk-color-secondary and then #2b7cff.
colorsstringemptyComma-separated outer and inner ring colors.
sizenumber50Rendered SVG size in CSS pixels.
stroke-widthnumber3Ring stroke width in SVG units.
durnumber1.5Rotation duration in seconds. Color cycling uses twice this duration.
animatedbooleantrueEnables ring rotation and color animation.
pausedbooleanfalseStops animation while keeping the static rings visible.

Events ​

NameDetail
dvk-ready{ tagName }

Slots ​

NameDescription
defaultLoading status text rendered below the rings.

CSS Variables ​

NameMeaning
--dvk-loading-orbit-sizeSVG display size. The size attribute sets this inline.
--dvk-loading-orbit-gapGap between rings and status text.
--dvk-loading-orbit-tip-colorStatus text color.
--dvk-loading-orbit-tip-font-sizeStatus text font size.
--dvk-loading-orbit-tip-line-heightStatus text line height.

Parts ​

PartDescription
rootLoading layout wrapper.
graphicSVG graphic.
ringShared ring selector.
outer-ringOuter dashed circle.
inner-ringInner dashed circle.
tipStatus text wrapper.