Skip to content

Border Box 1

dvk-border-box-1 is the first numbered border component. It renders a rectangular SVG border with a moving highlight around the edge.

Border Box 1

animated edge highlight around a live telemetry panel

LIVE
Requests2.84M+18.6%
Latency38ms-9.2%
Uptime99.98%+0.3%
html
<dvk-border-box-1 colors="#235fa7,#4fd2dd" duration="3">
  <section>Border Box 1</section>
</dvk-border-box-1>

Props

NameTypeDefaultNotes
colorstringCSS variable fallbackPrimary border color.
secondary-colorstringCSS variable fallbackSecondary highlight color.
colorsstringemptyComma-separated primary and secondary colors.
reversebooleanfalseReverses the animated path direction.
durationnumber3Animation duration in seconds.
animatedbooleantrueEnables the moving highlight.
pausedbooleanfalsePauses the moving highlight while retaining the border.
auto-heightbooleanfalseLets slotted content define the box height instead of stretching to a parent height.

Events

NameDetail
dvk-ready{ tagName }

CSS Variables

NameMeaning
--dvk-color-primaryPrimary fallback color.
--dvk-color-secondarySecondary fallback color.
--dvk-border-box-paddingShared override for automatic content inset across border boxes.
--dvk-border-box-1-paddingComponent-specific override for automatic content inset.

Parts

PartDescription
frameAbsolute frame layer.
graphicInternal SVG.
contentSlotted content wrapper.