UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

30 lines 945 B
import React from 'react'; import { PieArcDatum } from 'd3-shape'; import { PieChartProps } from './interfaces'; import { InternalChartDatum } from './pie-chart'; import { Dimension } from './utils'; interface SegmentsProps<T> { pieData: Array<PieArcDatum<InternalChartDatum<T>>>; highlightedSegment: T | null; dimensions: Dimension; variant: PieChartProps['variant']; focusedSegmentRef: React.RefObject<SVGGElement>; popoverTrackRef: React.RefObject<SVGCircleElement>; segmentAriaRoleDescription?: string; onMouseDown: (datum: InternalChartDatum<T>) => void; onMouseOver: (datum: InternalChartDatum<T>) => void; onTouchStart: () => void; } export default function Segments<T extends PieChartProps.Datum>({ pieData, highlightedSegment, dimensions, variant, focusedSegmentRef, popoverTrackRef, segmentAriaRoleDescription, onMouseDown, onMouseOver, onTouchStart }: SegmentsProps<T>): JSX.Element; export {};