# @gluestack-ui/actionsheet

> A universal headless actionsheet component for React Native, Next.js & React

Latest version **0.2.53** (published 2025-04-08) · 0 weekly downloads

## Install

```sh
npm install @gluestack-ui/actionsheet
pnpm add @gluestack-ui/actionsheet
yarn add @gluestack-ui/actionsheet
bun add @gluestack-ui/actionsheet
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.2.53 |
| Published | 2025-04-08 |
| First published | 2023-02-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 63.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5305 |
| Maintainers | vidhi499, rohit_singh, viraj-10, rayan1810, rajat693, surajahmedc, meenumakkar, madhavb230100, vaibhk002, daminipandey, amars29, geekgautam, sravankumarvelangi, gluestackadmin, geekashwini, mayankp06 |
| Keywords | react, native, react-native, actionsheet, gluestack-ui, universal, headless, typescript, component, android, ios, nextjs |

## Links

- npm: https://www.npmjs.com/package/@gluestack-ui/actionsheet
- Repository: https://github.com/gluestack/gluestack-ui
- Homepage: https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/actionsheet#readme
- Issues: https://github.com/gluestack/gluestack-ui/issues
- npm.io page: https://npm.io/package/@gluestack-ui/actionsheet

## Dependencies (7)

- [@gluestack-ui/hooks](https://npm.io/package/@gluestack-ui/hooks.md) 0.1.13
- [@gluestack-ui/utils](https://npm.io/package/@gluestack-ui/utils.md) ^0.1.15
- [@gluestack-ui/overlay](https://npm.io/package/@gluestack-ui/overlay.md) ^0.1.22
- [@react-native-aria/focus](https://npm.io/package/@react-native-aria/focus.md) ^0.2.9
- [@gluestack-ui/transitions](https://npm.io/package/@gluestack-ui/transitions.md) ^0.1.11
- [@react-native-aria/dialog](https://npm.io/package/@react-native-aria/dialog.md) ^0.0.5
- [@react-native-aria/interactions](https://npm.io/package/@react-native-aria/interactions.md) 0.2.16

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.53 (latest) — 2025-04-08
- 0.2.21-alpha.0 (alpha) — 2023-09-15
- 0.1.4-alpha.1 (next) — 2023-04-03
- 0.2.52 — 2025-03-11
- 0.2.51 — 2025-03-03
- 0.2.50 — 2025-02-19
- 0.2.49 — 2025-02-18
- 0.2.48 — 2025-02-18
- 0.2.47 — 2025-02-18
- 0.2.46 — 2024-11-11
- 0.2.45 — 2024-09-19
- 0.2.44 — 2024-08-21
- 0.2.43 — 2024-07-08
- 0.2.42 — 2024-06-11
- 0.2.41 — 2024-04-03
- … 47 more at https://npm.io/package/@gluestack-ui/actionsheet/versions

## README

# `@gluestack-ui/actionsheet`

The Actionsheet component presents a set of options to the user, overlaid on top of the app's content, allowing them to take quick actions without leaving the current page or view.

## Installation

To install the component, run the following command in your terminal. This will add the component to your project's dependencies and allow you to use it in your project.

```sh
npx install @gluestack-ui/actionsheet
```

## Usage

Default styling of all these components can be found in the components/core/actionsheet file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/main/example/storybook/src/ui-components/Actionsheet/styled-components/index.tsx) of the styled Actionsheet components.

```jsx
// import the styles
import {
  Root,
  Content,
  Item,
  ItemText,
  DragIndicator,
  IndicatorWrapper,
  Backdrop,
} from '../components/core/actionsheet/styled-components';

// import the createActionsheet function
import { createActionsheet } from '@gluestack-ui/actionsheet';

// Understanding the API
const Actionsheet = createActionsheet({
  Root,
  Content,
  Item,
  ItemText,
  DragIndicator,
  IndicatorWrapper,
  Backdrop,
});

// Using the actionsheet component
export default () => (
  <Actionsheet isOpen={showActionsheet} onClose={handleClose}>
    <ActionsheetBackdrop />
    <ActionsheetContent>
      <ActionsheetDragIndicatorWrapper>
        <ActionsheetDragIndicator />
      </ActionsheetDragIndicatorWrapper>
      <ActionsheetItem onPress={handleClose}>
        <ActionsheetItemText>Community</ActionsheetItemText>
      </ActionsheetItem>
    </ActionsheetContent>
  </Actionsheet>
);
```

More guides on how to get started are available
[here](https://ui.gluestack.io/docs/).

---
_Source: https://npm.io/package/@gluestack-ui/actionsheet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
