@while-and-for/tremor-react
Version:
The React library to build dashboards faster.
13 lines (12 loc) • 399 B
TypeScript
import React from "react";
import { Color } from "../../../lib";
export interface LegendItemProps {
name: string;
color: Color;
}
export interface LegendProps extends React.OlHTMLAttributes<HTMLOListElement> {
categories: string[];
colors?: Color[];
}
declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLOListElement>>;
export default Legend;