diff --git a/README.md b/README.md index b32fc24..ebd2307 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ import Circle from 'react-circle'; // All avaliable props for customization(illustrated by default values): // Details are ordered as: `: ` diff --git a/src/circle.tsx b/src/circle.tsx index e03a6ff..e6f3a94 100644 --- a/src/circle.tsx +++ b/src/circle.tsx @@ -13,6 +13,7 @@ export interface CircleProps { size?: string; lineWidth?: string; percentSpacing?: number; + verticleSpacing?: number | string; textStyle?: CSSProperties; roundedStroke?: boolean; responsive?: boolean; @@ -40,15 +41,16 @@ export class Circle extends Component { size: '100', lineWidth: '25', percentSpacing: 10, + verticleSpacing: "0.34em", textStyle: { font: 'bold 4rem Helvetica, Arial, sans-serif' } } get text() { - const { progress, showPercentage, textColor, textStyle, percentSpacing, showPercentageSymbol } = this.props; + const { progress, showPercentage, textColor, textStyle, percentSpacing, verticleSpacing, showPercentageSymbol } = this.props; if (!showPercentage) return; return ( - + {progress}{showPercentageSymbol && %} );