collapseOptions does not exist on SplitPane props
M4RC0Sx opened this issue · 1 comments
M4RC0Sx commented
I can't make the exmaple from the wiki work:
<SplitPane
split="vertical"
collapseOptions={{
beforeToggleButton: <Button>⬅</Button>,
afterToggleButton: <Button>➡</Button>,
overlayCss: { backgroundColor: "black" },
buttonTransition: "zoom",
buttonPositionOffset: -20,
collapsedSize: 50,
collapseTransitionTimeout: 350,
}}
>
Type '{ children: Element[]; split: "vertical"; collapseOptions: { beforeToggleButton: Element; afterToggleButton: Element; overlayCss: { backgroundColor: string; }; buttonTransition: string; buttonPositionOffset: number; collapsedSize: number; collapseTransitionTimeout: number; }; }' is not assignable to type 'IntrinsicAttributes & SplitPaneProps & { children?: ReactNode; }'.
Property 'collapseOptions' does not exist on type 'IntrinsicAttributes & SplitPaneProps & { children?: ReactNode; }'.ts(2322)
shubham-latiyan commented
Use collapse={{
}}