Add editor split component (#198)

Add split and split divider component
This commit is contained in:
mrdrogdrog 2020-06-13 01:22:27 +02:00 committed by GitHub
parent c679f5524c
commit f298d1469b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 130 additions and 13 deletions

View file

@ -0,0 +1,15 @@
import React from 'react'
import './split-divider.scss'
export interface SplitDividerProps {
onGrab: () => void
}
export const SplitDivider: React.FC<SplitDividerProps> = ({ onGrab }) => {
return (
<div
onMouseDown={() => onGrab()}
onTouchStart={() => onGrab()}
className={'split-divider'}/>
)
}