@dotconnor/grommet
Version:
focus on the essential experience
31 lines (25 loc) • 756 B
TypeScript
import * as React from 'react';
import { ColorType } from '../../utils';
export type DiagramConnectionAnchor = 'center' | 'vertical' | 'horizontal';
export type DiagramConnectionType = 'direct' | 'curved' | 'rectilinear';
export interface DiagramProps {
connections: {
anchor?: DiagramConnectionAnchor;
color?: ColorType;
fromTarget: string | object;
label?: string;
offset?: 'xsmall' | 'small' | 'medium' | 'large' | string;
thickness?:
| 'hair'
| 'xxsmall'
| 'xsmall'
| 'small'
| 'medium'
| 'large'
| string;
toTarget: string | object;
type?: DiagramConnectionType;
}[];
}
declare const Diagram: React.FC<DiagramProps & JSX.IntrinsicElements['svg']>;
export { Diagram };