Sparkline

Sparkline Component

stable
Playground
Props
PropTypeDefaultValue
widthnumber
heightnumber
colorcolor
fillColorcolor
strokeWidthnumber
showDotsboolean
Default
WithFill
WithDots
CustomColor
PROPTYPEDEFAULTDESCRIPTION
colorcolorLine color
fillColorcolorArea fill color
heightnumberChart height in pixels
showDotsbooleanShow dots at data points
strokeWidthnumberLine stroke width
widthnumberChart width in pixels
Using Sparklinetsx
import { Sparkline } from '@/components/Sparkline'

<Sparkline
  width="..."
  height="..."
  color="..."
  fillColor="..."
  strokeWidth="..."
  showDots="..."
/>
Tokens Used
No design tokens detected