1.0.2 • Published 10 months ago

@clikvn/react-bottom-sheet v1.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
10 months ago

To develop

Available Scripts

In the project directory, you run: Start storybook

yarn storybook

Try to build js

yarn rollup

Public to npmjs

yarn deploy

Runs the app in the development mode.\ Open http://localhost:6006 to view it in the browser.

To use

Installation

  npm i @clikvn/react-bottom-sheet

or

  yarn add @clikvn/react-bottom-sheet

Usage/Examples

import { BottomSheet } from "@clikvn/react-bottom-sheet";
import "@clikvn/react-bottom-sheet/dist/cjs/style.css";

function App() {
  const bottomSheetRef = useRef<BottomSheetRefTypes>();

  useEffect(() => {
    bottomSheetRef?.current?.triggerOpen(true)
  }, []);

  return 
   <div style={{width:"80vw", height: "80vh"}}>
      <button onClick={() => {
        bottomSheetRef?.current?.triggerOpen(true)
        bottomSheetRef?.current?.expand()
        }}
        >open
      </button>
      <BottomSheet  
        ref={bottomSheetRef} 
        header={
          <div>header</div>
        } 
        {...args}
        swipeLevels={DEFAULT_SWIPE_LEVELS}
        onChangeSwipeLevel={handleChangeSwipeLevel}
        >
          content
        </BottomSheet>
    </div>
}

Features

1.0.2

10 months ago

1.0.1

10 months ago

1.0.5-dev

11 months ago

1.0.4-dev

11 months ago

1.0.3-dev

11 months ago

1.0.2-dev

11 months ago

1.0.1-dev

11 months ago

1.0.0

11 months ago

0.0.7

11 months ago

0.0.6-dev-2

11 months ago

0.0.6-dev

11 months ago

0.0.6

11 months ago

0.0.5

12 months ago

0.0.4-dev

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.9-beta

12 months ago

0.0.8-beta

12 months ago

0.0.7-beta

12 months ago

0.0.6-beta

12 months ago

0.0.5-beta

12 months ago

0.0.4-beta

12 months ago

0.0.3-beta

12 months ago

0.0.2-beta

12 months ago

0.0.1-beta

12 months ago