Props
Positioning
number
default:"0"
The x-coordinate of the center point in pixels.
number
default:"0"
The y-coordinate of the center point in pixels.
number
default:"0"
The inner radius of the sector in pixels. Set to 0 for a pie slice without a hole.
number
default:"0"
The outer radius of the sector in pixels.
Angles
number
default:"0"
The start angle of the sector in degrees. 0 degrees is at the 3 o’clock position.
number
default:"0"
The end angle of the sector in degrees.
Appearance
number
default:"0"
The radius of rounded corners in pixels.
boolean
default:"false"
Whether to force rendering of rounded corners even when the angle of the sector is very small.
boolean
default:"false"
Whether the corner radius is external to the sector.
string
CSS class name to apply to the sector element.
SVG properties
This component accepts all standard SVG path element properties including:fill- Fill colorstroke- Stroke colorstrokeWidth- Stroke widthopacity- Opacity valuestyle- Inline styles
Events
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for click events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mousedown events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mouseup events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mousemove events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mouseover events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mouseout events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mouseenter events on the sector.
(e: React.MouseEvent<SVGPathElement>) => void
Event handler for mouseleave events on the sector.