UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

43 lines (42 loc) 1.19 kB
import React from 'react'; import { StandardProps } from '../../util/component-types'; export interface IAxisLabelProps extends StandardProps { /** Height of the margin this label should fit into. */ height: number; /** Width of the margin this label should fit into. */ width: number; /** Strings should match an existing color class unless they start with a '#' * for specific colors. E.g.: * - \`COLOR_0\` - \`COLOR_GOOD\` - \`'#123abc'\` `*/ color: string; /** Contents of the label, should only ever be a string since we use a \`text\` under the hood. */ label: string; /** Determine orientation of the label. */ orient: 'top' | 'bottom' | 'left' | 'right'; } export declare const AxisLabel: { (props: IAxisLabelProps): React.ReactElement; defaultProps: { color: string; }; displayName: string; peek: { description: string; categories: string[]; }; propTypes: { style: any; className: any; height: any; width: any; color: any; label: any; orient: any; }; }; export default AxisLabel;