@quantabit/modal-sdk
v1.0.2
Published
Universal modal/dialog/drawer/bottom-sheet components
Downloads
407
Maintainers
Readme
@quantabit/modal-sdk
Universal modal, dialog, drawer, and bottom-sheet components
Components
- Modal — Centered popup with backdrop blur
- ConfirmDialog — Confirm/Cancel with danger/warning variants
- Drawer — Side panel (left/right/top/bottom)
- BottomSheet — Mobile-friendly bottom drawer
- useModal — Hook with open/close/toggle
- modal.confirm() — Imperative confirm dialog
import { Modal, ConfirmDialog, Drawer, useModal } from '@quantabit/modal-sdk';
const { visible, open, close } = useModal();
<Modal visible={visible} onClose={close} title="Settings">Content</Modal>
<ConfirmDialog visible={v} onConfirm={del} variant="danger" title="Delete?" />
<Drawer visible={v} placement="right" title="Details">...</Drawer>License
MIT © QuantaBit Team
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
