In This Article
Velo: About Multi-State Boxes
Use multi-state boxes to display different content for different situations. For example, you can:
- Show different site content if a shopping cart is empty or full.
- Display an error state when something goes wrong.
- Show a preloader while a page is loading.
- Switch between "sale," "new," and "out of stock" badges for your products.
- Show different site content depending on whether there's an upcoming event.
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/0ca9e8ba-16ed-4cd8-a1e1-58d01c4420f7/2019/07/05/a6e724e6-f387-474b-b378-04ffb929ad0c/754423c6-9895-4761-b565-c173fb3d51c3.png)
You can also use multi-state boxes to let site visitors easily navigate multiple displays. For example, visitors can:
- Navigate what appear to be multiple tabs.
- Switch between a brief description and a detailed block of text.
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/0ca9e8ba-16ed-4cd8-a1e1-58d01c4420f7/2019/07/08/45fe8076-fbd9-429d-940a-4fe0e91859ba/51430c60-e12d-4c63-8b6d-50f5dc003c07.png)
Multi-state boxes generally contain two or more states, each with different content. A specific state is displayed either because a particular condition exists (an empty shopping cart), or because a site visitor chose to navigate to that state (clicked a button to read expanded text).
Tip: Changing the box state might impact your page layout.
See also
- Learn how to set up your multi-state box.
- Learn how to work with your multi-state box and code.
Was this helpful?
Yes
No