mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-07 09:55:43 -04:00
Add editor split component (#198)
Add split and split divider component
This commit is contained in:
parent
c679f5524c
commit
f298d1469b
9 changed files with 130 additions and 13 deletions
15
src/components/common/split-divider/split-divider.tsx
Normal file
15
src/components/common/split-divider/split-divider.tsx
Normal 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'}/>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue