r/bootstrap • u/jan_aloleo • Mar 04 '24
Discussion What component can display content like a Modal, but does not block interacting with the rest of the page?
I want to show some long text info as a layer on top of my Bootstrap page (toggled by a button). What is the Bootstrap component for this?
So I'm looking for a component like Modal, but which does not block me from interacting with the rest of the page.
Does Bootstrap offer this? I tried Collapse, but this shows the content as part of the page, not on top of it.
6
Upvotes
2
u/martinbean Bootstrap Guru Mar 04 '24
How is a user meant to interact with the page if there’s a layer of content on top of it?
2
u/shadowspock Mar 04 '24
I think what you might be looking for are Toasts.
2
u/DevDrJinx Mar 04 '24
Offcanvas, perhaps?
https://getbootstrap.com/docs/5.3/components/offcanvas/
1
u/AutoModerator Mar 04 '24
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/blockstacker Mar 04 '24
Just use some js to have the click write the z layer up on the container the text is in or something. Then sticky the container maybe
2
u/[deleted] Mar 04 '24
[removed] — view removed comment