@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
15 lines (14 loc) • 693 B
TypeScript
import { PieArcDatum } from 'd3-shape';
import { PieChartProps } from './interfaces';
import { InternalChartDatum } from './pie-chart';
export interface LabelsProps<T> {
pieData: PieArcDatum<InternalChartDatum<T>>[];
visibleDataSum: number;
size: NonNullable<PieChartProps['size']>;
hideTitles: boolean;
hideDescriptions: boolean;
highlightedSegment: PieChartProps.Datum | null;
segmentDescription?: PieChartProps.SegmentDescriptionFunction<T>;
}
declare const _default: <T extends PieChartProps.Datum>({ pieData, size, highlightedSegment, segmentDescription, visibleDataSum, hideTitles, hideDescriptions }: LabelsProps<T>) => JSX.Element;
export default _default;