diff --git a/src/circle.tsx b/src/circle.tsx index 2ceea1c..1a557b4 100644 --- a/src/circle.tsx +++ b/src/circle.tsx @@ -61,12 +61,17 @@ export class Circle extends Component { const transition = animate ? `stroke-dashoffset ${animationDuration} ease-out` : undefined; const strokeLinecap = roundedStroke ? 'round' : 'butt'; const svgSize = responsive ? '100%' : size; - + const children = this.props.children return ( - {text} + { + children ? + children + : + text + } ); }