react-splitter icon indicating copy to clipboard operation
react-splitter copied to clipboard

Splitter Type does not exist

Open bloggrammer opened this issue 2 years ago • 1 comments

I noticed in the Live Demo that splitterSize requires one to set the splitter type. How can this be done in react.js?

<Split splitterType="solid" splitterSize="50px" initialPrimarySize="70%" defaultSplitterColors={colors}>
           
</Split>

Error: Property 'splitterType' does not exist on type

Version: 2.1.2

bloggrammer avatar Jun 25 '23 10:06 bloggrammer

Hi @bloggrammer and @GeoffCox I know this is Late, but this comment for new Members, In demo there done by manually like below

  const renderSplitter = (props) => {
    return <div className='solid'></div>;
  };

solid css

.solid {
    width: 100%;
    height: 100%;
    outline: none;
    overflow: hidden;
    background: blue
}

split tag

 <Split renderSplitter={renderSplitter} splitterSize='10px' resetOnDoubleClick>
....
</Split>

logesh810 avatar May 16 '24 09:05 logesh810