react-modal-sheet icon indicating copy to clipboard operation
react-modal-sheet copied to clipboard

How do I implement a sticky footer?

Open 0oooooooo0 opened this issue 2 years ago • 1 comments

How do I implement a sticky footer? I also want to use it with Sheet.Scroller

0oooooooo0 avatar Nov 16 '23 07:11 0oooooooo0

Hi @0oooooooo0 👋

You could try to use snap points to place the sheet at the bottom and make it look like a "sticky" footer.

However I would recommend not to use the bottom sheet as a sticky footer but instead create a separate component as the sticky footer that then opens the sheet like I've done in the Apple Music demo.

Temzasse avatar May 12 '24 09:05 Temzasse

Hi, is it possible to have a sticky footer inside the Modal Sheet ? Something like <Sheet.Footer>.

By modifying from the example provided in documentation:


>       <Sheet isOpen={isOpen} onClose={() => setOpen(false)}>
>         <Sheet.Container>
>           <Sheet.Header />
>           <Sheet.Content>{/* Your sheet content goes here */}</Sheet.Content>
>           <Sheet.Footer />  // Footer 
>         </Sheet.Container>
>         <Sheet.Backdrop />
>       </Sheet>

WZG99 avatar Aug 01 '24 02:08 WZG99