Appearance
useIsMobile
Hook breakpoint dùng bởi Sidebar / pattern mobile.
ts
import { useIsMobile } from "@minap/ui";Examples
tsx
import { useIsMobile } from "@minap/ui";
const mobile = useIsMobile();Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
(return) | boolean | — | true dưới mobile breakpoint |
Behavior
- Hook chỉ client
Mobile / WebView
- Dùng để phân nhánh UI theo viewport hẹp hoặc shell React Native WebView.
- Overlay phức tạp: ưu tiên Sheet trên mobile; xem thêm Overlays.