0.2.41 • Published 1 month ago

@gluestack-ui/actionsheet v0.2.41

Weekly downloads
-
License
-
Repository
github
Last release
1 month ago

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

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 of the styled Actionsheet components.

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

0.2.41

1 month ago

0.2.40

2 months ago

0.2.39

2 months ago

0.2.38

2 months ago

0.2.37

3 months ago

0.2.36

5 months ago

0.2.35

5 months ago

0.2.34

5 months ago

0.2.33

5 months ago

0.2.32

5 months ago

0.2.31

5 months ago

0.2.13-alpha.0

10 months ago

0.2.27

7 months ago

0.2.26

8 months ago

0.2.25

8 months ago

0.2.24

8 months ago

0.2.23

8 months ago

0.2.22

8 months ago

0.2.21

8 months ago

0.2.20

8 months ago

0.2.19

8 months ago

0.2.18

8 months ago

0.2.17

8 months ago

0.2.13-alpha.1

10 months ago

0.2.30

7 months ago

0.2.21-alpha.0

8 months ago

0.2.16

9 months ago

0.2.15

10 months ago

0.2.14

10 months ago

0.2.12

10 months ago

0.2.11

11 months ago

0.2.29

7 months ago

0.2.28

7 months ago

0.2.10

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.4-alpha.1

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.1.2

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.1.0-alpha.0

1 year ago