@vx/glyph
Version:
vx glyph
18 lines • 916 B
TypeScript
import React from 'react';
import { Symbol } from 'd3-shape';
export declare type GlyphSquareProps<Datum> = {
/** Render function override which is passed the configured path generator. */
children?: ({ path }: {
path: Symbol<any, Datum>;
}) => React.ReactNode;
/** classname to apply to glyph path element. */
className?: string;
/** Top offset to apply to glyph g element container. */
top?: number;
/** Left offset to apply to glyph g element container. */
left?: number;
/** Size of square in px, or an accessor which takes Datum as input and returns a size. */
size?: number | ((d: Datum) => number);
};
export default function GlyphSquare<Datum = any>({ children, className, top, left, size, ...restProps }: GlyphSquareProps<Datum> & Omit<React.SVGProps<SVGPathElement>, keyof GlyphSquareProps<Datum>>): JSX.Element;
//# sourceMappingURL=GlyphSquare.d.ts.map