Skip to content

WrapBatteryProps

Attributes:

attr Battery

Battery: BatteryProps

Type: BatteryProps

A native component within hitokage that displays battery information.

See ComponentProps

Example

monitor = hitokage.monitor.get_primary()

---@type BatteryProps
battery_props = { format = "{{icon}}" }

monitor:attach({
  children = {
    Battery = battery_props,
  },
})

The mounted API is documented here: Battery