View | AIUI | Rokid

The view component is the basic building block of the user interface. It is similar to the div element in HTML.

View

The view component is the basic building block of the user interface. It is similar to the div element in HTML.

Organize Page Content

<view class="container">
  <view class="item">Item 1</view>
  <view class="item">Item 2</view>
</view>

Features

  • Supports Flexbox layout.
  • Can contain other components.
  • Supports background colors, borders, and standard box model properties.

row, column, swiper, swiper-item, and fragment currently reuse the view component implementation. They accept the same child content and CSS layout capabilities; the tag names themselves do not add carousel behavior.