UNPKG

@visx/annotation

Version:
10 lines 957 B
import React from 'react'; import { LabelProps } from './Label'; export declare type HtmlLabelProps = Pick<LabelProps, 'anchorLineStroke' | 'className' | 'horizontalAnchor' | 'resizeObserverPolyfill' | 'showAnchorLine' | 'verticalAnchor' | 'x' | 'y'> & { /** Pass in a custom element as the label to style as you like. Renders inside a <foreignObject>, be aware that most non-browser SVG renderers will not render HTML <foreignObject>s. See: https://github.com/airbnb/visx/issues/1173#issuecomment-1014380545. */ children?: React.ReactNode; /** Optional styles to apply to the HTML container. */ containerStyle?: React.CSSProperties; }; export default function HtmlLabel({ anchorLineStroke, children, className, containerStyle, horizontalAnchor: propsHorizontalAnchor, resizeObserverPolyfill, showAnchorLine, verticalAnchor: propsVerticalAnchor, x: propsX, y: propsY, }: HtmlLabelProps): JSX.Element; //# sourceMappingURL=HtmlLabel.d.ts.map