Skip to content
Binary Dreams UI Kit reference Sparkline

Sparkline

Compact inline line or area trend.

Loading interactive example

Choose Sparkline for a compact trend beside a metric when full axes and detailed comparison are unnecessary.

API

MemberTypeKindRequiredDefault
colorstringpropNo'var(--bd-series-1)'
curveSparklineCurvepropNo'monotone'
heightnumberpropNo24
labelstringpropNoundefined
pointsSparklinePoint[]propYes
showLastbooleanpropNofalse
strokeWidthnumberpropNo1.5
variantSparklineVariantpropNo'line'
widthnumberpropNo96
yMaxnumberpropNoundefined
yMinnumberpropNoundefined

Source

Loading source