Skip to content

Decoration 5

dvk-decoration-5 recreates the angled line decoration from DataV Vue3 Decoration8 as a framework-agnostic Web Component. It reads the host width and height, draws the original three SVG polylines, and can mirror the line direction with reverse.

html
<dvk-decoration-5></dvk-decoration-5>
html
<dvk-decoration-5></dvk-decoration-5>
<dvk-decoration-5 reverse></dvk-decoration-5>

Props

NameTypeDefaultNotes
colorstringCSS variable fallbackPrimary line color. When set as a JavaScript property, a DataV-style color array is also accepted.
secondary-colorstringCSS variable fallbackBottom line color.
colorsstringemptyComma-separated primary and secondary line colors.
reversebooleanfalseMirrors the decoration horizontally.

Events

NameDetail
dvk-ready{ tagName }

CSS Variables

NameMeaning
--dvk-color-primaryPrimary fallback color.
--dvk-color-secondarySecondary fallback color.

Parts

PartDescription
graphicInternal SVG.
lineShared part for all polylines.
short-lineShort angled polyline.
long-lineLong angled polyline.
bottom-lineBottom horizontal polyline.