---
title: "Server sidebar"
description: "The column beside a channel: the server banner, the voice channel and the grouped member list."
---

The column beside a channel: the server banner, the voice channel and the grouped member list. 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 Server sidebar — see the page for the rendered demo._

## Installation

```bash
npx newtui@latest add server-sidebar
``` Registry dependencies, installed with it: server-banner, voice-channel, member-list, status-indicator, avatar.

Files written — React: components/server-sidebar.tsx. Vue: components/server-sidebar/ServerSidebar.vue, components/server-sidebar/types.ts, components/server-sidebar/index.ts.

## Usage

React:

```tsx
import { ServerSidebar } from "@/components/server-sidebar"
```

Vue:

```ts
import { ServerSidebar } from "@/components/server-sidebar"
```

## API reference

**`ServerSidebar`**

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `serverName` | `string` | — | Required serverName value. |
| `voiceChannel` | `{ name: string; members: readonly string[] } \| undefined` | — | Who is currently in the voice channel, in join order. |
| `members` | `readonly SidebarMember[]` | — | Required members value. |

The registry exports `SidebarMember`, `ServerSidebar`. 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

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