Container
Introduction
A container is a component that is similar to a element in HTML. It defines a block-level container in your document. Use this component to create specific layouts, apply custom styles to a block, or group multiple elements to manage them together.

Configuration items
Category |
Configuration |
Example |
Description |
Layout |
Pattern |
The layout pattern. Options include grid and flex. |
|
Interaction |
Hide |
Hides the component. For more information, see Common properties. |
|
Load |
Displays a loading animation. |
||
Style |
Height |
The component height. For more information, see Common properties. |
|
Padding |
The component padding. For more information, see Common properties. |
||
Margin |
The component margin. For more information, see Common properties. |
||
CSS styles |
Overflow |
Sets the behavior for content that overflows the container. This corresponds to the CSS overflow property. For more information, see the MDN documentation. |
|
Background |
|
Sets various background properties, such as color, image, origin, size, and repeat. This corresponds to the CSS background property. For more information, see the MDN documentation. |
|
Background image |
|
Sets one or more background images. This corresponds to the CSS background-image property. For more information, see the MDN documentation. |
|
Background color |
Sets the background color. This corresponds to the CSS background-color property. For more information, see the MDN documentation. |
||
Shadow |
|
Sets a shadow effect. This corresponds to the CSS box-shadow property. For more information, see the MDN documentation. |
|
Border radius |
Sets the radius of the outer border corners. This corresponds to the CSS border-radius property. For more information, see the MDN documentation. |
||
Border |
Sets the border properties. This corresponds to the CSS border property. For more information, see the MDN documentation. |
||
Top border |
Sets the top border properties. This corresponds to the CSS border-top property. For more information, see the MDN documentation. |
||
Bottom border |
Sets the bottom border properties. This corresponds to the CSS border-bottom property. For more information, see the MDN documentation. |
||
Left border |
Sets the left border properties. This corresponds to the CSS border-left property. For more information, see the MDN documentation. |
||
Right border |
Sets the right border properties. This corresponds to the CSS border-right property. For more information, see the MDN documentation. |
Properties and methods
Name |
Type |
Example |
Description |
isHover |
boolean |
|
Indicates whether the mouse is inside the component. |
loading |
boolean |
|
Indicates whether the component is loading. |
setLoading |
func |
|
Sets the loading state of the component. |
clearLoading |
func |
|
Clears the loading state of the component. |
Event callbacks
Configuration |
Description |
The event that is triggered when the component is clicked. |
|
The event that is triggered when the mouse pointer moves over the component. |
|
The event that is triggered when the mouse pointer moves out of the component. |


