1. Reference
  2. Overlays

<bottom-sheet>

A sheet that slides up from the bottom of the screen, with a drag handle and a title.

Overlays
bottom-sheet.ham
<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>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
background Background color.
color
drag-handle Show the drag handle.
boolean
true
title Sheet title.
string

Commands

NameWhat it does
dismiss Close it.
show Open it.

Readings

NameWhat 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.

This page is also Markdown, and all of HAM is in llms.txt.