This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
useCallback, | |
useEffect, | |
useRef, | |
useState, | |
} from 'react' | |
import PropTypes from 'prop-types' | |
import clsx from 'clsx' | |
import { useField, ErrorMessage } from 'formik' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
const Left = () => <div /> // Component to be placed into left section of divider | |
const Right = () => <div /> // Component to be placed into right section of divider | |
class Divider extends Component { | |
constructor(props) { | |
super(props) | |
this.dragging = false | |
this.leftLim = 0.1 // min width of left container (0.1...0.9) |