grommet
Version:
focus on the essential experience
19 lines (15 loc) • 1.26 kB
TypeScript
import * as React from "react";
export interface MeterProps {
a11yTitle?: string;
alignSelf?: "start" | "center" | "end" | "stretch";
gridArea?: string;
margin?: "none" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | {bottom?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,horizontal?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,left?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,right?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,top?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string,vertical?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | string} | string;
background?: string | {color?: string,opacity?: "weak" | "medium" | "strong" | boolean};
round?: boolean;
size?: "xsmall" | "small" | "medium" | "large" | "xlarge" | "full" | string;
thickness?: "xsmall" | "small" | "medium" | "large" | "xlarge" | string;
type?: "bar" | "circle";
values?: {color?: string,highlight?: boolean,label: string,onClick?: ((...args: any[]) => any),onHover?: ((...args: any[]) => any),value: number}[];
}
declare const Meter: React.ComponentClass<MeterProps>;
export { Meter };