A performant react bottom sheet 🧨
npm install react-hyukie-bottom-sheetA simple Bottom Sheet that can be used in React
```
npm install react-hyukie-bottom-sheet --save
``
yarn add react-hyukie-bottom-sheet
`typescript
import { useState } from "react";
import { BottomSheet } from "react-hyukie-bottom-sheet";
function App() {
const [isShow, setIsShow] = useState(false);
const handleBottomSheet = () => {
setIsShow((prev) => !prev);
};
return (
<>
isShow={isShow}
contents={
Hello world
}export default App;
`
| Prop name | essential | type | Description | Example |
| ----------------- | :-------: | :-------------: | -------------------------------------------------------------------------------------------------- | -------------------------------------- |
| isShow | X | boolean | A value that determines whether the bottom sheet comes out or not. | true |setIsShow((prev) => !prev)
| handleBottomSheet | X | function | A function that manages isShow, a value that determines whether the bottom sheet comes out or not. | |
| contents | X | React.ReactNode | Content to be placed inside the bottom sheet |
Hello World
|
| height | X | number | Height that the bottom sheet will occupy on the screen (vertical size) | 350 |
| backGroundColor | X | string | Existing screen color when Bottom Sheet is raised | gray rgba(0, 0, 0, 0.2) #fff ... |
| shadow | X | string | Bottom Sheet's Top Shadow Style | 0px 0px 5px 0px rgba(0, 0, 0, 0.45) |
| duration | X | number | The speed at which the bottom sheet rises | 500 |
| borderRadius | X | number | Left and right bends at the top of the bottom sheet rises | 16` |