Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collapseOptions does not exist on SplitPane props #112

Open
M4RC0Sx opened this issue Sep 26, 2021 · 1 comment
Open

collapseOptions does not exist on SplitPane props #112

M4RC0Sx opened this issue Sep 26, 2021 · 1 comment

Comments

@M4RC0Sx
Copy link

M4RC0Sx commented Sep 26, 2021

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
Copy link

Use collapse={{
}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants