---
title: "Server Banner"
description: "Invite-style card with a server icon, name, live member counts and a join button."
---

Invite-style card with a server icon, name, live member counts and a join button. 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 Banner — see the page for the rendered demo._

## Installation

```bash
npx newtui@latest add server-banner
```

npm dependencies: class-variance-authority. Registry dependencies, installed with it: button.

Files written — React: components/ui/server-banner.tsx. Vue: components/ui/server-banner/ServerBanner.vue, components/ui/server-banner/ServerBannerIcon.vue, components/ui/server-banner/ServerBannerInfo.vue, components/ui/server-banner/ServerBannerName.vue, components/ui/server-banner/ServerBannerMeta.vue, components/ui/server-banner/ServerBannerMetaItem.vue, components/ui/server-banner/index.ts.

## Usage

React:

```tsx
import { ServerBanner } from "@/components/ui/server-banner"
```

Vue:

```ts
import { ServerBanner, ServerBannerIcon, ServerBannerInfo, ServerBannerName, ServerBannerMeta, ServerBannerMetaItem } from "@/components/ui/server-banner"
```

## API reference

**`ServerBanner`**

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children / default slot` | `React.ReactNode / Vue slot` | — | Content rendered inside the component. |
| `className / class` | `string` | — | Additional classes merged with the component defaults. |

The registry exports `ServerBanner`, `ServerBannerIcon`, `ServerBannerInfo`, `ServerBannerName`, `ServerBannerMeta`, `ServerBannerMetaItem`. 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 Banner reads its colours, radii and motion from the `--newt-*` tokens. Override a token rather than editing the component.
