---
title: "V2 Container"
description: "The Components V2 block that groups text, separators and action rows behind one accent bar."
---

The Components V2 block that groups text, separators and action rows behind one accent bar. Compose it from the exported registry parts so local content and behaviour stay in the application while the visual contract stays token-driven.

_Live example of V2 Container — see the page for the rendered demo._

## Installation

```bash
npx newtui@latest add v2-container
```

Files written — React: components/ui/v2-container.tsx. Vue: components/ui/v2-container/V2Container.vue, components/ui/v2-container/index.ts.

## Usage

React:

```tsx
import { V2Container } from "@/components/ui/v2-container"
```

Vue:

```ts
import { V2Container } from "@/components/ui/v2-container"
```

## API reference

**`V2Container`**

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `accentColor` | `string \| undefined` | — | Accent colour of the left bar; defaults to the surface border. |

The registry exports `V2Container`. Parts without a table accept the native attributes for the element they render; React uses `className`, while Vue uses `class` and fallthrough attributes.

## Accessibility

Preserve the native semantics of the rendered elements and pass through ARIA attributes when the surrounding context needs a label or description. Any interactive child needs a visible focus indicator, and meaning must not rely on colour alone.

## Tokens

V2 Container reads its colours, radii and motion from the `--newt-*` tokens. Override a token rather than editing the component.
