Skip to main content

Box

Box is a layout component. It is a simple div element that can be used to create a layout.

import { Box } from "rizzui";

Default

The style of Box component.

import { Box } from "rizzui";

export default function App() {
return <Box className="border border-muted rounded-md size-24 shadow" />;
}

API Reference


Box Props

Here is the API documentation of the Box component. And the rest of the props are the same as the original html element. You can use props like id, title, onClick etc.

PropsTypeDescriptionDefault
asdiv or any html elementRender as"div"
childrenReact.ReactNodeAccepts everything React can render__
classNamestringAdd custom classes to the component__