@while-and-for/tremor-react
Version:
The React library to build dashboards faster.
20 lines (19 loc) • 569 B
TypeScript
import React from "react";
import { Color, ValueFormatter } from "../../../lib";
type Bar = {
key?: string;
value: number;
name: string;
icon?: React.JSXElementConstructor<any>;
href?: string;
target?: string;
color?: Color;
};
export interface BarListProps extends React.HTMLAttributes<HTMLDivElement> {
data: Bar[];
valueFormatter?: ValueFormatter;
color?: Color;
showAnimation?: boolean;
}
declare const BarList: React.ForwardRefExoticComponent<BarListProps & React.RefAttributes<HTMLDivElement>>;
export default BarList;