Skip to content

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 / APITypeDefaultNotes
(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.

MINAP UI — Soft Periwinkle light, Mobile-First