<bottom-sheet>
A sheet that slides up from the bottom of the screen, with a drag handle and a title.
<column style="gap-12 w-full">
<img src="https://hypeapps.dev/gallery/assets/city.jpg"
style="w-full h-200 rounded-xl"
fit="cover"/>
<bottom-sheet title="Share to">
<column style="w-full gap-16 p-16">
<text>Messages</text>
<text>Mail</text>
<text>Copy link</text>
</column>
</bottom-sheet>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
background |
Background color. color |
|
drag-handle |
Show the drag handle. boolean |
true |
title |
Sheet title. string |
Commands
| Name | What it does |
|---|---|
dismiss |
Close it. |
show |
Open it. |
Readings
| Name | What it does |
|---|---|
open |
Whether it is showing. |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.