> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Bottom Sheet

Slide a bare panel up from the bottom of the screen, with a drag handle and a backdrop, and fill it with anything you like.


[Sheet](/dolan/sheet.md) and [Select](/dolan/select.md) are built on it. Use Sheet when you want a padded panel with a title and footer. Use Bottom Sheet when you want to lay out the panel yourself.

## Installation

```bash
npx @blotch/dolan add bottom-sheet
```

```typescript
import { UiBottomSheet } from '../components/ui/bottom-sheet';
```

:::tip
This also adds [Glass](/dolan/glass.md) and [Icon](/dolan/icon.md), which the glass variant draws with.
:::

## Usage

```typescript
import { Component, signal } from '@angular/core';
import { LYNX_ELEMENTS } from '@blotch/angular-lynx';
import { UiBottomSheet } from '../components/ui/bottom-sheet';
import { UiButton } from '../components/ui/button';

@Component({
  selector: 'app-sort-picker',
  imports: [LYNX_ELEMENTS, UiBottomSheet, UiButton],
  template: `
    <ui-button (pressed)="open.set(true)">Sort by</ui-button>

    <ui-bottom-sheet [(open)]="open">
      @for (option of options; track option) {
        <view class="px-6 py-3" (bindtap)="choose(option)">
          <text class="text-base text-foreground">{{ option }}</text>
        </view>
      }
    </ui-bottom-sheet>
  `,
})
export class SortPicker {
  protected readonly options = ['Newest', 'Oldest', 'Most popular'];
  protected readonly open = signal(false);
  protected readonly sort = signal('Newest');

  protected choose(option: string): void {
    this.sort.set(option);
    this.open.set(false);
  }
}
```

- `[(open)]` two-way binds a signal. Set it to `true` to slide the panel up and `false` to slide it down.
- A backdrop tap sets `open` back to `false`. Taps inside the panel don't reach the backdrop.
- The panel has rounded top corners, a border and the background color, but no padding. Your content starts right below the handle.
- The panel's bottom is padded by the safe area, so content stays clear of the home indicator.
- The sheet draws in an [`<overlay>`](/api/elements/overlay.md), so it covers the whole screen wherever it sits in your template.
- When it opens, a screen reader moves into the panel and stays inside it until the sheet closes.
- Android's back button closes it.
- On Android, a second after the first sheet in your app is drawn, it draws itself once where it opens, unseen. It's in a backdrop faded almost out, for a few frames, taking no touches or focus. Android draws a sheet slowly the first time in a process, so its first opening would otherwise start with late frames. If any sheet has opened by then, that opening paid the cost, and the unseen draw is skipped.
- It keeps moving while your app works: Core Animation runs its slides on iOS, as it does a UIKit sheet's.

### Drag to dismiss

The bar at the top is a drag handle. Only the handle responds to dragging, so scrolling content inside the panel still works.

- Dragging the handle down more than 100px and letting go closes the sheet.
- A shorter drag springs the panel back up.
- The backdrop lightens as the panel moves down.
- On web, the handle drags with a mouse too.

### Detents

**Detents** are the heights a sheet rests at, as on iOS. A sheet fits its content by default. Give it more than one detent and the handle drags it between them:

```angular-html
<ui-bottom-sheet [(open)]="open" [detents]="['medium', 'large']">
  <scroll-view scroll-orientation="vertical" class="flex-1">
    <!-- rows -->
  </scroll-view>
</ui-bottom-sheet>
```

| Detent     | Height                                |
| ---------- | ------------------------------------- |
| `'fit'`    | Its content's (the default)           |
| `'medium'` | Half the screen                       |
| `'large'`  | The whole screen below the status bar |

- It opens at the first detent in the list.
- Dragged more than 50px toward another detent, it moves on to it. A shorter drag settles back.
- A tap on the handle moves it to the next detent, and from the tallest back to the shortest. Screen readers announce the handle as a button, so it's how their users resize the sheet.
- Dragged down from its shortest detent, it closes as before.
- At `medium` and `large` the panel has a height of its own, so a `flex-1` scroll view inside it takes the height that's left.

`[(detent)]` binds the detent it rests at. Set it to move an open sheet, or before opening to open at another detent:

```angular-html
<ui-bottom-sheet
  [(open)]="open"
  [detents]="['medium', 'large']"
  [(detent)]="detent"
>
  …
</ui-bottom-sheet>
```

It's `undefined` while the sheet is closed, so each open starts at the first detent unless you set one.

### Glass

`variant="glass"` draws each platform's own sheet. On iOS 26 and later, that's Liquid Glass:

```angular-html
<ui-bottom-sheet
  variant="glass"
  [detents]="['medium', 'large']"
  [(open)]="open"
>
  …
</ui-bottom-sheet>
```

- **Below full height it floats.** The glass sheet is inset 8px from the screen's sides and bottom, so the page shows around it. Its corners are concentric with the screen's.
- **At full height it turns opaque** and meets the edges, as iOS 26 sheets do. Dragging between the two blends from one to the other.
- **The backdrop dims less**, as iOS dims behind a sheet.
- **It can grow out of the button that presents it.** Mark the button with `[uiSheetSource]="sheet"`. The glass sheet then grows out of it rather than sliding up, and shrinks back into it as it closes (see [Sheet](/dolan/sheet.md#from-the-button-that-presents-it)).

What each platform draws:

| Platform                                          | Below full height                                  | At full height       |
| ------------------------------------------------- | -------------------------------------------------- | -------------------- |
| iOS 26 and later                                  | Liquid Glass, inset, with concentric corners       | Opaque, edge to edge |
| iOS 15 to 25                                      | The sheet of that time: opaque, 10pt top corners   | The same             |
| Android                                           | A Material 3 bottom sheet: 28dp top corners, scrim | The same             |
| Android, with [`provideGlass()`](/dolan/glass.md) | Glass without the refraction, inset                | Opaque, edge to edge |
| [Web preview](/guide/glossary.md#web-preview)     | Liquid Glass, drawn with WebGL, inset              | Opaque, edge to edge |

Each has its platform's grabber: iOS 26's wide one, iOS 15 to 25's short one, or Material's drag handle. Without `variant`, the sheet looks as it always has, on every platform.

### Long content

The panel grows with its content and has no maximum height. For a long list, put a [`<scroll-view>`](/api/elements/scroll-view.md) with a fixed height inside, because a scroll view needs one to scroll.

```angular-html
<ui-bottom-sheet [(open)]="open">
  <scroll-view scroll-orientation="vertical" class="h-80">
    <!-- rows -->
  </scroll-view>
</ui-bottom-sheet>
```

### Run code after it closes

`closed` emits once the slide-down animation has finished. It's a good place to navigate once the sheet has gone. You can also navigate straight from a tap inside the sheet, as from any tap handler.

## API

### UiBottomSheet

| Input     | Type                       | Default     | Description                                                                       |
| --------- | -------------------------- | ----------- | --------------------------------------------------------------------------------- |
| `open`    | `boolean`                  | `false`     | Whether the sheet is shown. Supports `[(open)]`.                                  |
| `variant` | `'default' \| 'glass'`     | `'default'` | `'glass'` draws each platform's own sheet. See [Glass](#glass).                   |
| `detents` | `SheetDetent[]`            | `['fit']`   | The heights it rests at: `'fit'`, `'medium'`, `'large'`. See [Detents](#detents). |
| `detent`  | `SheetDetent \| undefined` | `undefined` | The detent it rests at while open. Supports `[(detent)]`.                         |
| `class`   | `string`                   | `''`        | Extra Tailwind classes for the panel.                                             |

| Output         | Type                       | Description                                                                                               |
| -------------- | -------------------------- | --------------------------------------------------------------------------------------------------------- |
| `openChange`   | `boolean`                  | Emits `false` when a backdrop tap, a drag or Android's back button closes the sheet. Part of `[(open)]`.  |
| `detentChange` | `SheetDetent \| undefined` | Emits when the sheet comes to rest at a detent, and `undefined` once it has closed. Part of `[(detent)]`. |
| `closed`       | `void`                     | Emits after the close animation finishes.                                                                 |

### UiSheetSource

Selector: `[uiSheetSource]`. Put it on the button that presents the sheet, with the sheet as its value, and the glass sheet grows out of the button (see [Sheet](/dolan/sheet.md#from-the-button-that-presents-it)).

## Accessibility

- When the sheet opens, a screen reader moves into the panel and can't leave it until the sheet closes.
- A sheet with more than one detent has a handle that screen readers read as "Sheet grabber", a button. Activating it moves the sheet to its next detent.
- Under **Reduce Motion**, the glass variant doesn't slide or animate between detents: it fades in and out with the backdrop, and moves between detents at once. A drag still follows the finger.

## Related

- [Dialogs and overlays](/guide/overlays.md): how overlays work and which one to use
- [Sheet](/dolan/sheet.md): a padded panel with a title and footer
- [Select](/dolan/select.md): a picker that opens in a bottom sheet
- [Action Sheet](/dolan/action-sheet.md): a list of actions from the bottom
- [Glass](/dolan/glass.md): the Liquid Glass the glass variant draws with
