Box

Box is a generic container component that can be used to group other components.

By default, the Box component is based on the div and rendered as a block element. It's primary use is for applying styles.

Basic Example

CSS color
CSS color
Radix Color
Radix Color
Radix Theme Color

Background

To set a background image or gradient, use the background CSS prop.

API Reference

rx.box

A fundamental layout building block, based on div element.

Props

No component specific props