BASuite
BABox
A simple wrapper component for layout and styling, similar to a div but with extended props.
Example:
import { BABox } from "basuite";
<>
<BABox className="p-4 bg-gray-100 rounded">Default Box</BABox>
<BABox className="p-4 bg-blue-100 rounded" onClick={() => alert("Clicked!")}> Clickable Box </BABox>
<BABox className="p-4 bg-green-100 rounded" sx={{ border: "1px solid green" }}> Box with Inline Styles </BABox>
</>
Props:
| Name | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | Content inside the box. | |
| className | string | Optional CSS className for styling. | |
| sx | any | Inline styles for additional customization. | |
| onClick | () => void | Click handler for the box container. |