@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
22 lines (21 loc) • 763 B
TypeScript
import { BaseComponentProps } from '../../base-component';
import { ChartSeriesMarkerType } from '../chart-series-marker';
interface I18nStrings {
filterLabel?: string;
filterPlaceholder?: string;
filterSelectedAriaLabel?: string;
}
export interface ChartFilterItem<T> {
label: string;
color: string;
type: ChartSeriesMarkerType;
datum: T;
}
export interface ChartFilterProps<T> extends BaseComponentProps {
series: ReadonlyArray<ChartFilterItem<T>>;
i18nStrings?: I18nStrings;
selectedSeries?: ReadonlyArray<T>;
onChange: (selectedSeries: ReadonlyArray<T>) => void;
}
export default function ChartFilter<T>({ series, i18nStrings, selectedSeries, onChange, ...restProps }: ChartFilterProps<T>): JSX.Element;
export {};