Currently, ScaleText only allows Elements as the prop type for children; and it only applies to the first element in it's list of children. This isn't completely intuitive.
It'd be nice to allow renderable children, ie string, number, node, etc., and ensure that, in development mode, it warns you when there is more than one top level child. For non-node/element children, it would wrap them in a <span> before rendering.
Basically, ensure we allow for the following primary use cases:
Currently,
ScaleText
only allows Elements as the prop type for children; and it only applies to the first element in it's list of children. This isn't completely intuitive.It'd be nice to allow renderable children, ie
string
,number
,node
, etc., and ensure that, in development mode, it warns you when there is more than one top level child. For non-node/element children, it would wrap them in a<span>
before rendering.Basically, ensure we allow for the following primary use cases: