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

How do I implement a sticky footer? #147

Open
0oooooooo0 opened this issue Nov 16, 2023 · 2 comments
Open

How do I implement a sticky footer? #147

0oooooooo0 opened this issue Nov 16, 2023 · 2 comments

Comments

@0oooooooo0
Copy link

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

@Temzasse
Copy link
Owner

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.

@WZG99
Copy link

WZG99 commented Aug 1, 2024

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>

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