# Box

A grouped settings container with rounded corners and padding.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<ComponentPreview name="box/Basic" />

## Import [#import]

```rust
use maccn::MacBox;
```

## Usage [#usage]

```rust
MacBox::new("settings-group")
    .child(MacLabel::new("caption").style(LabelStyle::Footnote).child("Network"))
    .child("Content here");
```

## API [#api]

### Constructor [#constructor]

| Method            | Description                                            |
| ----------------- | ------------------------------------------------------ |
| `MacBox::new(id)` | Creates a new box container with the given element ID. |

### Traits [#traits]

| Trait           | Description                           |
| --------------- | ------------------------------------- |
| `Styled`        | Set background, border, padding, etc. |
| `ParentElement` | Add child elements via `.child()`.    |
