Add /playground and initial tooltips

This commit is contained in:
Melvin Valster
2019-07-24 21:52:38 +02:00
parent 94a0a97fbf
commit 36742ea22e
14 changed files with 260 additions and 32 deletions
+2 -1
View File
@@ -31,7 +31,7 @@ export const Arrow: FC<Props> = ({ from, to, active = false }) => {
const height = to.row - from.row
const width = Math.abs(to.col - from.col)
const dir = getDirection(from, to)
if (dir === 'right-down' || dir === 'left-down') {
props['data-height'] = height
@@ -42,6 +42,7 @@ export const Arrow: FC<Props> = ({ from, to, active = false }) => {
const className = classNames('arrow', `arrow--${dir}`, {
'arrow--active': active,
'arrow--side-down': dir === 'right-down' || dir === 'left-down'
})
return <div className={className} {...props} />