# <bottom-sheet>

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

Category: Overlays.

```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>
```

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/bottom-sheet-light.webp), [dark](https://hypeapps.dev/img/tags/bottom-sheet-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `background` | Background color. |  |
| `drag-handle` | Show the drag handle. | `true` |
| `title` | Sheet title. |  |

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

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<img>`](https://hypeapps.dev/docs/reference/img.md): Shows a picture from a URL or the app's files, sized and cropped by its style.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<dialog>`](https://hypeapps.dev/docs/reference/dialog.md): A dialog with a title, a message, and confirm and cancel buttons that run statements.
- [`<dropdown>`](https://hypeapps.dev/docs/reference/dropdown.md): A Material dropdown menu: a field that opens a list of choices; the chosen value is readable by id.
- [`<menu-item>`](https://hypeapps.dev/docs/reference/menu-item.md): One choice in a popup menu or dropdown: an icon, a label, and the action it runs.
- [`<popover>`](https://hypeapps.dev/docs/reference/popover.md): Floats its children next to another element, like a reactions bar over a Like button.
- [`<popup-menu>`](https://hypeapps.dev/docs/reference/popup-menu.md): An icon button that opens a context menu; picking an item runs its action and fires select.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
