@pagedotapp/page-bottom-sheet
A mobile-friendly bottom sheet component
Installation
npm install @pagedotapp/page-bottom-sheet
Usage
import { PageBottomSheet } from "@pagedotapp/page-bottom-sheet"
function App() {
return (
<PageBottomSheet
isOpen={isOpen}
onClose={() => setIsOpen(false)}
title="Bottom Sheet"
>
<p>Sheet content goes here</p>
</PageBottomSheet>
)
}
Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-dialog: ^1.1.14
- @react-spring/web: ^10.0.1
- @pagedotapp/page-button: ^0.1.0-alpha.0
- @use-gesture/react: ^10.3.1
License
MIT © PageStudio