Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 621 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 621 Bytes

<SvgText />

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.