@maael/use-breakpoints
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

useBreakpoints

Example

const device = useBreakpoints({ treatTabletAs: "desktop" });

Options

Option Type Required Description
breakpoints Record<BreakpointDeviceOption, number> N Set of breakpoints and values
treatTabletAs `'mobile' 'desktop'` N

TODOs

  • [ ] Probably throttle the handleResize call for desktops.

Dependents (0)

Package Sidebar

Install

npm i @maael/use-breakpoints

Weekly Downloads

5

Version

1.0.3

License

UNLICENSED

Unpacked Size

5.94 kB

Total Files

5

Last publish

Collaborators

  • maael