← all modules

Std.Ui.Responsive

Std.Ui.Responsive
  Std.Ui.Responsive — device-class detection + breakpoint helpers for `Std.Ui`.

Types
  type DeviceClass = Phone | Tablet | Desktop | BigDesktop

Values
  bigDesktop : DeviceClass
  classifyDevice : { width : Int , height : Int } -> DeviceClass
  desktop : DeviceClass
  deviceClassToString : DeviceClass -> String
      Stable string tags useful for switch-style dispatch in user code
  mobile : DeviceClass
      Bare-value constants — for shorter call sites when comparing
  tablet : DeviceClass