Svg

A vector drawing from primitive shapes (paths, circles, rects, lines, texts). Colors take text color tokens or CSS colors.

Examples

Loading examples…

Props

PropTypeDescription
viewBoxstring
labelstringWhat the drawing shows, for screen readers. Leave it unset for a decorative drawing
widthnumber | string
heightnumber | string
sizenumber | string
colorstringDefault "prose"
fillstringDefault "currentColor"
strokestring
strokeWidthnumber
strokeLinecap"butt" | "round" | "square"
strokeLinejoin"miter" | "round" | "bevel"
preserveAspectRatiostring
pathsobject[]
circlesobject[]
rectsobject[]
linesobject[]
textsobject[]

Link to Svg · All standard components

On this page