Material Design provides components and layouts that adapt for XR. Using the existing Material 3 library, components and adaptive layouts are enhanced with spatial UI behaviors.
You can adapt your current M3
implementation by adding the EnableXrComponentOverrides
wrapper.
Use EnableXrComponentOverrides to adapt your existing app
All M3 Compose UI inside of the
EnableXrComponentOverrides
wrapper will adapt on XR
devices. This wrapper lets you choose any components you want to exclude from
this behavior.
Add the EnableXrComponentOverrides
wrapper to adapt your app to Material
Design for XR.
Navigation rail
Navigation rail in any Compose layout, including NavigationSuiteScaffold
will automatically adapt to XR Orbiter. For more information, read Material
Design guidelines.
Navigation bar
Navigation bar in any Compose layout, including NavigationSuiteScaffold
will automatically adapt to XR orbiter. For more information, read Material
Design guidelines.
List-detail layout for XR
Compose Material 3 Adaptive Layouts in XR have a 1:1 mapping where each
pane is placed inside its own XR spatial panel. Learn more about
ListDetailPaneScaffold
and adaptive design guidelines.
Support pane layout for XR
Compose Material 3 Adaptive Layouts in XR have a 1:1 mapping where each
pane is placed inside its own XR spatial panel. Learn more about
SupportingPaneScaffold
and adaptive design guidelines.
Start designing with the Material 3 Design Kit for Figma
Download the Material 3 Design Kit to get started