Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AppSizeListenerProps

Hierarchy

Index

Properties

children

children: ReactNode

Optional defaultSize

defaultSize: AppSize

An optional default size to use for your app. This is really only helpful when trying to do server side rendering or initial page render since the default behavior is to check and update the size once mounted in the DOM.

Optional desktopLargeMinWidth

desktopLargeMinWidth: QuerySize

The min width for a large desktop screen.

Optional desktopMinWidth

desktopMinWidth: QuerySize

The min width for a desktop screen.

Optional phoneMaxWidth

phoneMaxWidth: QuerySize

The max width to use for phones. This one is a max width unline the others since everything from 0 to this value will be considered a phone.

Optional tabletMaxWidth

tabletMaxWidth: QuerySize

The max width for a tablet device. This should normally be 1px less than the desktopMinWidth, but it can be any value if needed. The tablet has a range of min to max so that you can have a bit more control.

Optional tabletMinWidth

tabletMinWidth: QuerySize

The min width for a tablet device.

Methods

Optional onChange

Generated using TypeDoc