import { SvgText } from 'ihme-ui'
A primitive wrapper around an SVG <text>
element.
Property | Required | Type(s) | Defaults | Description |
---|---|---|---|---|
value |
string, number | Text to render. | ||
anchor |
true | one of: 'start', 'middle', 'end' | Where to anchor text. | |
x |
true | number | Position element in x direction. | |
y |
number | Position element in y direction. | ||
dx |
number | Shift element in x direction. | ||
dy |
number | Shift element in y direction. | ||
fill |
string | 'black' | Fill color of txt. |