Skip to main content
February 3, 2026 | Adam Lantz We are introducing a new concept in Anvil2 that improves mobile experiences: Adaptive Components.

Automatic adaptation

Historically, building for the mobile web meant making a difficult choice: build a single “one-size-fits-all” component that feels mediocre on every device, or build separate desktop and mobile versions that increase maintenance burden. Neither option is ideal. One leads to poor usability—like popovers being covered by software keyboards—and the other leads to inconsistent implementation across product teams. Adaptive components solve this problem. Instead of forcing you to choose, adaptive components automatically detect the device context and transform their behavior to match. They determine the optimal experience automatically.

See it in action: SelectField and MultiSelectField

The new SelectField and MultiSelectField components (currently in beta) are our first adaptive components.
  • On Desktop: They render a familiar popover dropdown, optimized for mouse and keyboard interaction.
  • On Mobile: They instantly transform into a full-screen dialog. This ensures the menu is never obscured by the software keyboard, providing larger touch targets and a dedicated search input.
A key benefit is that you use the exact same component code. SelectField and MultiSelectField handle the complexity of switching views internally.

Powered by useAdaptiveView

To make this logic reusable, we’ve shipped the useAdaptiveView hook. This utility encapsulates our logic for determining the optimal view, combining screen size with pointer precision to distinguish between a small browser window on a desktop and a true mobile device. By using useAdaptiveView, your custom components can share the same behavior as Anvil2’s core library, ensuring a consistent experience across the entire platform.

We want your feedback

We’re just getting started with adaptiveness, and we want your input:
  1. Try the hook: implementing useAdaptiveView in your own components? Let us know how it goes.
  2. Suggest components: What other patterns (DatePickers? Menus? Filters?) would benefit from an adaptive mobile view?
Drop us a line in #ask-designsystem. We look forward to your feedback.
Last modified on February 12, 2026