Homelogologo
Sponsor

DecorativeBox

A box with background styling meant to highlight or contain items visually.

Overview

The DecorativeBox is a stylized container primarily used for layout scaffolding or highlighting content with background patterns and colors.

Usage

import { DecorativeBox } from "@elemnts-ui/react";

Basic

By default, the DecorativeBox takes up the full width and height of its parent and has an outline and patterned background.

Variants

The DecorativeBox comes with two variants: primary (default) and secondary.

API Reference

The DecorativeBox supports all standard div props as well as Panda CSS system properties.

PropTypeDefault
variant"primary" | "secondary""primary"