useUser reports the user’s locale, theme, and device capabilities, so the view can format values, match the host’s palette, and size controls for them.
Example
The carousel follows the host theme, formats prices in the host locale, and adapts its controls to the device: a touch device gets larger tap targets, and hover styles apply only when the device reports hover.Returns
locale
"en-US" when the value is not a valid locale. It is safe to pass straight to Intl APIs.
theme
userAgent
useViewport
Read the available height and safe-area insets
useDisplayMode
Read and request the view’s display mode
Design for the Host
Adapt the view to the user’s device and locale