# Struct ui::Container

> A box around other components (type 17).

`zaun_client::ui::Container` · Struct

```rust
pub struct Container { … }
```

A box around other components (type 17).

## Methods

### `new`

```rust
pub fn new() -> Self
```

An empty container.

### `accent`

```rust
pub const fn accent(self, rgb: u32) -> Self
```

Its accent colour, `0xRRGGBB`.

### `text`

```rust
pub fn text<impl Into<String>>(self, content: impl Into<String>) -> Self
```

Adds markdown text.

### `push`

```rust
pub fn push(self, component: Component) -> Self
```

Adds any layout component (section, gallery, file, separator).

### `row`

```rust
pub fn row(self, row: ActionRow) -> Self
```

Adds a row.

### `build`

```rust
pub fn build(self) -> Component
```

The component.

## Trait implementations

`Clone`, `Debug`, `Default`

[Full rustdoc page](/docs/api/rust/zaun-client/zaun_client/ui/layout/struct.Container.html)
