@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
16 lines • 481 B
TypeScript
/**
* A custom React hook that detects whether the current device is a mobile device
* based on the screen width (viewport < 768px).
*
* @returns `true` if the viewport width is less than 768px, `false` otherwise.
*
* @example
* ```tsx
* function MyComponent() {
* const isMobile = useIsMobile();
* return <div>{isMobile ? 'Mobile View' : 'Desktop View'}</div>;
* }
* ```
*/
export declare function useIsMobile(): boolean;
//# sourceMappingURL=useIsMobile.d.ts.map