Skip to content

Actions & HUD

Import these components from @nyxwire/vue. Each example is a separate client:visible island with its own NwProvider; Vue overview covers the shared stylesheet and provider.

The tables list Nyxwire’s additions and overrides. Every component documented with a class prop merges it with the theme through cn(); components without one pass class through as a plain attribute. Components wrapping Reka forward the remaining props and declared emits of the named primitive; components built from native elements do not acquire a Reka model or keyboard behavior.

Here, Intent means 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'. Appearance means the shared props intent (Intent), variant ('solid' | 'soft' | 'outline' | 'ghost' | 'link'), size ('xs' | 'sm' | 'md' | 'lg'), cut (chamfered top-right and bottom-left corners), wire (gradient edge) and glow ('sm' | 'md' | 'lg'). Boolean flags default to false unless stated otherwise; optional labels default to unset. Defaults below include theme defaults.

NwButton renders Reka Primitive as a native button by default. NwButtonGroup is a labelled div with role="group" that joins adjacent buttons without introducing roving focus.

No active deployment
ButtonDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwButtonGroup, NwProvider } from '@nyxwire/vue'
const deployed = ref(false)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-4">
<NwButton cut glow="sm" @click="deployed = !deployed">{{
deployed ? 'Roll back' : 'Deploy relay'
}}</NwButton>
<NwButtonGroup label="Relay actions">
<NwButton variant="outline" intent="neutral">Preview</NwButton>
<NwButton variant="outline" intent="neutral">Diff</NwButton>
<NwButton variant="outline" intent="danger" disabled>Purge</NwButton>
</NwButtonGroup>
<NwButton variant="soft" intent="secondary" wire>Wire edge</NwButton>
<NwButton variant="ghost" intent="tertiary" size="sm">Ghost</NwButton>
<NwButton loading>Syncing</NwButton>
<span role="status" class="text-sm text-fg-muted" data-demo-result>{{
deployed ? 'Relay deployed to north edge' : 'No active deployment'
}}</span>
</div>
</NwProvider>
</template>
<NwButtonGroup>
<NwButton />
<NwButton />
</NwButtonGroup>
Component / prop Type Default Effect
Button variant 'solid' | 'soft' | 'outline' | 'ghost' | 'link' 'solid' Surface treatment
Button intent Intent 'primary' Semantic color
Button size 'xs' | 'sm' | 'md' | 'lg' 'md' Control height
Button cut, wire boolean false Chamfered corners / gradient edge
Button glow 'sm' | 'md' | 'lg' unset Neon bloom in the intent color; hovering adds a small glow regardless
Button icon, block boolean false Square icon control / full width
Button loading boolean false Disables, sets aria-busy, overlays a spinner while keeping the label
Button disabled boolean false Native disabled; aria-disabled when rendered as another element
Button as, as-child PrimitiveProps 'button' Rendered element
Button type 'button' | 'submit' | 'reset' 'button' Native button type, set only when the element is a button
Group orientation 'horizontal' | 'vertical' 'horizontal' Attached-button direction, mirrored in data-orientation
Group label string unset Accessible group name

Tab reaches each enabled button; Enter and Space activate native buttons. Icon-only buttons need an accessible name, which NwIconButton enforces. With as="a" or as-child, the child keeps its own semantics and you handle disabled activation: aria-disabled alone does not stop a click.

NwIconButton is an NwButton with icon set and a required label, which becomes both its aria-label and its tooltip-style title. Put a single icon in the default slot.

3 nodes
IconButtonDemo.vue
<script setup lang="ts">
import { Minus, Plus, Power } from '@lucide/vue'
import { ref } from 'vue'
import { NwIconButton, NwProvider } from '@nyxwire/vue'
const nodes = ref(3)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-3">
<NwIconButton
label="Remove node"
variant="outline"
intent="neutral"
:disabled="nodes === 0"
@click="nodes--"
><Minus aria-hidden="true"
/></NwIconButton>
<output class="min-w-20 text-center font-mono text-sm" aria-live="polite" data-demo-result
>{{ nodes }} nodes</output
>
<NwIconButton label="Add node" cut @click="nodes++"><Plus aria-hidden="true" /></NwIconButton>
<NwIconButton label="Power cycle" intent="danger" variant="soft" size="sm"
><Power aria-hidden="true"
/></NwIconButton>
<NwIconButton label="Restarting" loading variant="ghost"
><Power aria-hidden="true"
/></NwIconButton>
</div>
</NwProvider>
</template>
Prop Type Default Effect
label string required Accessible name and title
Appearance see above 'primary', 'solid', 'md' Same appearance props as NwButton
disabled, loading boolean false Forwarded to NwButton

Mark the icon itself decorative with aria-hidden="true" so the label is the only name. The square sizes are 1.75, 2, 2.5 and 3 rem for xs to lg, so sm and up meet the 24 px target size.

NwToggle wraps Reka Toggle for a pressed state. NwToggleGroup wraps ToggleGroupRoot; its items inherit the group’s variant and size unless they set their own.

Alerts on · graph view
ToggleDemo.vue
<script setup lang="ts">
import { BellOff } from '@lucide/vue'
import { ref } from 'vue'
import { NwProvider, NwToggle, NwToggleGroup, NwToggleGroupItem } from '@nyxwire/vue'
const muted = ref(false)
const view = ref('graph')
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-4">
<NwToggle v-model="muted" variant="outline"
><BellOff aria-hidden="true" /> Mute alerts</NwToggle
>
<NwToggleGroup v-model="view" type="single" variant="outline" aria-label="Topology view">
<NwToggleGroupItem value="graph">Graph</NwToggleGroupItem>
<NwToggleGroupItem value="list">List</NwToggleGroupItem>
<NwToggleGroupItem value="map">Map</NwToggleGroupItem>
</NwToggleGroup>
<span class="text-sm text-fg-muted" aria-live="polite" data-demo-result
>{{ muted ? 'Alerts muted' : 'Alerts on' }} · {{ view || 'no' }} view</span
>
</div>
</NwProvider>
</template>
<NwToggle />
<NwToggleGroup>
<NwToggleGroupItem value="graph" />
</NwToggleGroup>
Component / prop Type Default Effect
Toggle / Group / Item variant 'default' | 'outline' 'default' Toggle surface; the pressed state fills with the soft primary
Toggle / Group / Item size 'xs' | 'sm' | 'md' | 'lg' 'md' Item dimensions
Toggle modelValue boolean unset v-model; emits update:modelValue
Group type 'single' | 'multiple' inferred from the value, otherwise 'single' Selection mode; set it explicitly for an initially empty group
Group modelValue ToggleGroupRootProps['modelValue'] uncontrolled, from defaultValue Selected value(s); emits update:modelValue
Group orientation 'horizontal' | 'vertical' 'horizontal' Layout and arrow-key axis

Space and Enter toggle aria-pressed; disabled items do not activate. In a group, arrow keys move roving focus between items, so the group is one tab stop. Give the group an accessible name and each item visible text or aria-label. A single group lets the user clear the selection by pressing the active item, so handle an empty value.

NwToolbar wraps Reka ToolbarRoot to group related commands into one tab stop. Use its own button, link, toggle and separator parts so arrow navigation can find them.

Channel stable · saved 0 times
ToolbarDemo.vue
<script setup lang="ts">
import { Save } from '@lucide/vue'
import { ref } from 'vue'
import {
NwProvider,
NwToolbar,
NwToolbarButton,
NwToolbarLink,
NwToolbarSeparator,
NwToolbarToggleGroup,
NwToolbarToggleItem,
} from '@nyxwire/vue'
const channel = ref('stable')
const saved = ref(0)
</script>
<template>
<NwProvider>
<div class="flex flex-col gap-3">
<NwToolbar aria-label="Release tools" class="flex-wrap">
<NwToolbarToggleGroup v-model="channel" type="single" aria-label="Channel">
<NwToolbarToggleItem value="stable">Stable</NwToolbarToggleItem>
<NwToolbarToggleItem value="canary">Canary</NwToolbarToggleItem>
</NwToolbarToggleGroup>
<NwToolbarSeparator />
<NwToolbarButton @click="saved++"><Save aria-hidden="true" /> Save</NwToolbarButton>
<NwToolbarButton intent="primary" variant="soft">Publish</NwToolbarButton>
<NwToolbarLink href="/vue/">Guide</NwToolbarLink>
</NwToolbar>
<span class="text-sm text-fg-muted" aria-live="polite" data-demo-result
>Channel {{ channel || 'none' }} · saved {{ saved }} times</span
>
</div>
</NwProvider>
</template>
<NwToolbar>
<NwToolbarToggleGroup>
<NwToolbarToggleItem value="stable" />
</NwToolbarToggleGroup>
<NwToolbarSeparator />
<NwToolbarButton />
<NwToolbarLink />
</NwToolbar>
Component / prop Type Default Effect
Toolbar orientation 'horizontal' | 'vertical' 'horizontal' Layout, arrow-key axis and separator direction
ToolbarButton appearance Appearance 'neutral', 'ghost', 'sm' Command appearance, with the button motifs
ToolbarButton icon boolean false Square command; name it with aria-label
ToolbarToggleGroup variant, size Toggle variants above 'default', 'sm' Appearance inherited by its items
ToolbarToggleItem variant, size Toggle variants above inherited, then 'sm' Per-item override

The root exposes role="toolbar". Tab enters it once; arrows move between commands, Home and End jump to the ends, and Enter or Space activates the focused command. Separators orient across the toolbar’s flow. Set aria-label on the toolbar and on each toggle group.

NwBadge renders Reka Primitive as a span for a status or category. It has no interaction or live announcement of its own.

Onlinev2.4BetaVoltIce
BadgeDemo.vue
<script setup lang="ts">
import { computed, ref } from 'vue'
import { NwBadge, NwButton, NwProvider } from '@nyxwire/vue'
import type { NwIntent } from '@nyxwire/vue'
const states = [
{ label: 'Online', intent: 'success' },
{ label: 'Degraded', intent: 'warning' },
{ label: 'Offline', intent: 'danger' },
] as const satisfies readonly { label: string; intent: NwIntent }[]
const index = ref(0)
const state = computed(() => states[index.value % states.length] ?? states[0])
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-3">
<NwBadge :intent="state.intent" dot data-demo-result>{{ state.label }}</NwBadge>
<NwButton size="sm" variant="outline" intent="neutral" @click="index++">Next state</NwButton>
<NwBadge intent="primary" variant="solid">v2.4</NwBadge>
<NwBadge intent="secondary" variant="outline" size="md">Beta</NwBadge>
<NwBadge accent="volt" cut>Volt</NwBadge>
<NwBadge accent="ice" glow="sm">Ice</NwBadge>
</div>
</NwProvider>
</template>
Prop Type Default Effect
Appearance see above 'neutral', 'soft', 'sm' Tone, surface, size and motifs
accent AccentName unset One of the 12 palette accents (indigo … steel); replaces intent
dot boolean false Leading diamond marker, glowing on non-solid badges
as PrimitiveProps['as'] 'span' Rendered element

Keep the status in text: the dot and the color alone do not convey meaning to a screen reader or in forced colors. A badge that changes at runtime is not announced; put it in a live region, as the demo’s neighbors do, when the change matters.

NwChip is a removable tag: a span with the badge face and, when removeLabel is set, a native remove button that emits remove.

eu-westus-eastap-southpinned3 regions selected
ChipDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwChip, NwProvider } from '@nyxwire/vue'
const initial = ['eu-west', 'us-east', 'ap-south']
const regions = ref([...initial])
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-2">
<NwChip
v-for="region in regions"
:key="region"
intent="primary"
:remove-label="`Remove ${region}`"
@remove="regions = regions.filter((item) => item !== region)"
>{{ region }}</NwChip
>
<NwChip intent="neutral" variant="outline" remove-label="Remove pinned" disabled
>pinned</NwChip
>
<NwButton
v-if="regions.length < initial.length"
size="xs"
variant="ghost"
intent="neutral"
@click="regions = [...initial]"
>Reset</NwButton
>
<span class="text-sm text-fg-muted" aria-live="polite" data-demo-result
>{{ regions.length }} regions selected</span
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
Appearance see above 'neutral', 'soft', 'sm' Tone, surface, size and motifs
removeLabel string unset Shows the remove button and names it (aria-label, title)
disabled boolean false Disables the remove button

The chip does not remove itself: handle remove and drop the item from your state. Tab reaches each remove button and Enter or Space activates it. Name each button after its chip (Remove eu-west), since several identical “Remove” buttons are ambiguous. For editable tag lists with keyboard entry, use NwTagsInput from Forms.

NwKbd is a native kbd keycap. It renders a key; it does not register a shortcut.

CtrlKEscEnter
Focus here and press a key: none yet
KbdDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwKbd, NwProvider } from '@nyxwire/vue'
const last = ref('')
function record(event: KeyboardEvent) {
if (event.key === 'Tab') return
last.value = event.key.length === 1 ? event.key.toUpperCase() : event.key
}
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-4">
<span class="flex items-center gap-1.5">
<NwKbd size="sm">Ctrl</NwKbd><NwKbd size="sm">K</NwKbd>
</span>
<NwKbd>Esc</NwKbd>
<NwKbd size="lg" highlight>Enter</NwKbd>
<div
tabindex="0"
role="group"
aria-label="Key tester: focus and press a key"
class="flex items-center gap-2 rounded-md border border-line px-3 py-2 text-sm text-fg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
@keydown="record"
>
Focus here and press a key:
<NwKbd v-if="last" highlight data-demo-result>{{ last }}</NwKbd>
<span v-else data-demo-result>none yet</span>
</div>
</div>
</NwProvider>
</template>
Prop Type Default Effect
size 'sm' | 'md' | 'lg' 'md' Keycap height and text size
highlight boolean false Primary ink and glow for a bound or pressed key

Write key names as users see them (Ctrl, Esc, Enter); screen readers read the text as is. The demo’s key tester is a focusable group that records keydown; it lets Tab through so focus never gets stuck.

NwKeyHint composes keycaps joined by a decorative plus and an action label in a span. Like NwKbd, it only describes a shortcut.

CtrlKCommand paletteGRGo to relaysShiftDDeploy
KeyHintDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwKeyHint, NwProvider } from '@nyxwire/vue'
const locked = ref(false)
</script>
<template>
<NwProvider>
<div class="flex flex-col gap-3">
<div class="flex flex-wrap items-center gap-x-6 gap-y-3">
<NwKeyHint :keys="['Ctrl', 'K']" label="Command palette" highlight />
<NwKeyHint :keys="['G', 'R']" label="Go to relays" size="sm" />
<NwKeyHint :keys="['Shift', 'D']" label="Deploy" :disabled="locked" data-demo-result />
</div>
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
:aria-pressed="locked"
@click="locked = !locked"
>{{ locked ? 'Unlock deploys' : 'Lock deploys' }}</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
keys readonly string[] required Key combination, e.g. ['Ctrl', 'K']
label string unset Action text; the default slot can replace it
size 'sm' | 'md' | 'lg' 'md' Keycap size
highlight boolean false Highlighted keycaps, dropped while disabled
disabled boolean false Muted state and aria-disabled="true"

Bind the actual shortcut in your app, and keep disabled in sync with it. Avoid single-letter shortcuts that fire while the user types in a field.

NwCard and its parts render Reka Primitive for a composed content surface. The default card is a div, not a button.

Edge relay

One region, 10k requests a day.

$12 / mo

Mesh relay

Every region, failover, metrics.

$48 / mo
Popular
Glass card: blurred translucent fill.
CardDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import {
NwBadge,
NwButton,
NwCard,
NwCardContent,
NwCardDescription,
NwCardFooter,
NwCardHeader,
NwCardTitle,
NwProvider,
} from '@nyxwire/vue'
const plans = [
{ id: 'edge', name: 'Edge relay', price: '$12 / mo', detail: 'One region, 10k requests a day.' },
{ id: 'mesh', name: 'Mesh relay', price: '$48 / mo', detail: 'Every region, failover, metrics.' },
] as const
const chosen = ref<string>('edge')
</script>
<template>
<NwProvider>
<div class="grid w-full gap-4 sm:grid-cols-2">
<NwCard
v-for="plan in plans"
:key="plan.id"
:selected="chosen === plan.id"
:cut="plan.id === 'mesh'"
:wire="plan.id === 'mesh'"
>
<NwCardHeader>
<NwCardTitle>{{ plan.name }}</NwCardTitle>
<NwCardDescription>{{ plan.detail }}</NwCardDescription>
</NwCardHeader>
<NwCardContent>
<span class="font-mono text-lg text-fg">{{ plan.price }}</span>
</NwCardContent>
<NwCardFooter>
<NwButton
size="sm"
:variant="chosen === plan.id ? 'solid' : 'outline'"
:aria-pressed="chosen === plan.id"
@click="chosen = plan.id"
>{{ chosen === plan.id ? 'Selected' : 'Choose' }}</NwButton
>
<NwBadge v-if="plan.id === 'mesh'" intent="secondary">Popular</NwBadge>
</NwCardFooter>
</NwCard>
<NwCard variant="glass" class="sm:col-span-2">
<NwCardContent class="text-fg-muted">Glass card: blurred translucent fill.</NwCardContent>
</NwCard>
</div>
</NwProvider>
</template>
<NwCard>
<NwCardHeader>
<NwCardTitle />
<NwCardDescription />
</NwCardHeader>
<NwCardContent />
<NwCardFooter />
</NwCard>
Prop Type Default Effect
variant 'default' | 'flat' | 'glass' | 'interactive' 'default' Panel, sunken, blurred translucent, or hover-lift surface
selected boolean false Primary edge and glow, and data-selected
cut, wire boolean false Chamfered corners / gradient edge
glow 'sm' | 'md' | 'lg' unset Primary bloom
as PrimitiveProps['as'] 'div' Root element

NwCardTitle defaults to h3 and NwCardDescription to p; choose as to fit the document outline. variant="interactive" only changes styling and adds a focus ring: when the whole card is actionable, render it as="a" or as="button" and do not nest other controls. selected is visual plus a data attribute; expose the selection on the control that sets it, as the demo does with aria-pressed.

NwSeparator wraps Reka Separator for horizontal or vertical division, optionally with a centered label.

Primary uplink

StatusLogsSettings
SeparatorDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwProvider, NwSeparator } from '@nyxwire/vue'
const wire = ref(false)
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-4">
<p class="m-0 text-sm text-fg-muted">Primary uplink</p>
<NwSeparator :wire="wire" data-demo-result />
<NwSeparator label="Fallback" :wire="wire" />
<div class="flex h-6 items-center gap-3 text-sm text-fg-muted">
<span>Status</span>
<NwSeparator orientation="vertical" />
<span>Logs</span>
<NwSeparator orientation="vertical" />
<span>Settings</span>
</div>
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
:aria-pressed="wire"
@click="wire = !wire"
>Wire lines</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
orientation 'horizontal' | 'vertical' 'horizontal' Direction
label string unset Text in the middle of a horizontal separator
wire boolean false Wire gradient line with a glow
decorative boolean false Reka prop: hides it from assistive technology

Without decorative, Reka renders role="separator" with aria-orientation; set decorative when the line is purely visual. A vertical separator stretches to its row, so give the parent a height.

NwAvatar wraps Reka AvatarRoot, with image and fallback parts. Given name, it composes them itself and names the avatar. NwAvatarGroup is a labelled native group that caps the visible children and adds a +N overflow avatar.

AKL+2 more
RB
AvatarDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwAvatar, NwAvatarGroup, NwButton, NwProvider } from '@nyxwire/vue'
const crew = [
{ name: 'Ada Reyes', status: 'online' },
{ name: 'Kenji Mori', status: 'away' },
{ name: 'Lina Okafor', status: 'busy' },
{ name: 'Theo Brandt', status: 'offline' },
{ name: 'Mira Holm', status: 'online' },
] as const
const expanded = ref(false)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-4">
<NwAvatarGroup :max="expanded ? undefined : 3" label="On-call crew" data-demo-result>
<NwAvatar
v-for="person in crew"
:key="person.name"
:name="person.name"
:status="person.status"
/>
</NwAvatarGroup>
<NwButton size="sm" variant="ghost" intent="neutral" @click="expanded = !expanded">{{
expanded ? 'Collapse' : 'Show everyone'
}}</NwButton>
<NwAvatar name="Relay bot" fallback="RB" square size="lg" />
</div>
</NwProvider>
</template>
<NwAvatarGroup>
<NwAvatar>
<NwAvatarImage />
<NwAvatarFallback />
</NwAvatar>
</NwAvatarGroup>
Component / prop Type Default Effect
Avatar / Group size 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' 'md' Group size is inherited unless an avatar sets its own
Avatar name string unset role="img" with aria-label (status appended), seeds the initials
Avatar src string unset Image of the default composition
Avatar fallback string first letter of name Initials of the default composition
Avatar square boolean false Cut-corner square instead of a circle
Avatar status 'online' | 'away' | 'busy' | 'offline' unset Status dot, plus screen-reader text when unnamed
Avatar decorative boolean false aria-hidden when a visible name sits next to it
Image alt string '' Image alternative text
Group max number unset Avatars shown before the overflow count
Group label string unset Accessible group name

The fallback shows until the image loads and stays when it fails. The overflow avatar reads “+2 more” but does not expose the hidden members’ names, so offer the full list elsewhere, as the demo’s toggle does.

NwAspectRatio wraps Reka AspectRatio to reserve media space before it loads. ratio and the remaining props pass through to Reka.

16/9 feed
AspectRatioDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwAspectRatio, NwProvider, NwToggleGroup, NwToggleGroupItem } from '@nyxwire/vue'
const ratio = ref('16/9')
const ratios: Record<string, number> = { '16/9': 16 / 9, '4/3': 4 / 3, '1/1': 1 }
</script>
<template>
<NwProvider>
<div class="flex w-full max-w-sm flex-col gap-3">
<NwToggleGroup v-model="ratio" type="single" size="sm" variant="outline" aria-label="Ratio">
<NwToggleGroupItem v-for="(_, key) in ratios" :key="key" :value="key">{{
key
}}</NwToggleGroupItem>
</NwToggleGroup>
<NwAspectRatio :ratio="ratios[ratio] ?? 16 / 9" cut data-demo-result>
<div
class="flex size-full items-center justify-center bg-wire font-mono text-sm text-on-primary"
>
{{ ratio || '16/9' }} feed
</div>
</NwAspectRatio>
</div>
</NwProvider>
</template>
Prop Type Default Effect
ratio number 1 Width divided by height
cut boolean false Chamfered media frame

Set ratio explicitly. The wrapper adds no keyboard stop and does not replace an image’s alt text.

NwSkeleton renders Reka Primitive as an aria-hidden placeholder with a primary shimmer.

SkeletonDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwAvatar, NwButton, NwProvider, NwSkeleton } from '@nyxwire/vue'
const loading = ref(true)
</script>
<template>
<NwProvider>
<div class="flex w-full max-w-sm flex-col gap-4">
<div v-if="loading" class="flex items-center gap-4" data-demo-result="loading">
<NwSkeleton shape="circle" />
<div class="min-w-0 flex-1 space-y-2">
<NwSkeleton shape="line" />
<NwSkeleton shape="text" class="w-2/3" />
</div>
</div>
<div v-else class="flex items-center gap-4" data-demo-result="loaded">
<NwAvatar name="North relay" fallback="NR" />
<div class="min-w-0 text-sm">
<p class="m-0 font-semibold text-fg">North relay</p>
<p class="m-0 text-fg-muted">12 ms · 99.98% uptime</p>
</div>
</div>
<NwSkeleton shape="rect" :static="!loading" />
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
@click="loading = !loading"
>{{ loading ? 'Show content' : 'Show placeholders' }}</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
shape 'block' | 'text' | 'line' | 'circle' | 'rect' 'block' Full-width block, 1em text, 1rem line, 2.5rem circle, or cut 16:9 media
static boolean false Turns the shimmer off; reduced motion always does
as PrimitiveProps['as'] 'div' Placeholder element

Skeletons are invisible to assistive technology, so announce the loading state elsewhere (a status message or aria-busy on the region). Size placeholders like the content they stand for to avoid layout shift.

NwSpinner is a native span with role="status" and a visually hidden label, or a decorative span when another element owns the announcement, as in NwButton’s loading state.

Loading routesLoading certificatesLoading relaysLoading metrics
LoadingDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwProvider, NwSpinner } from '@nyxwire/vue'
const syncing = ref(false)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-4">
<NwSpinner size="xs" label="Loading routes" />
<NwSpinner size="sm" intent="secondary" label="Loading certificates" />
<NwSpinner intent="primary" label="Loading relays" />
<NwSpinner size="lg" intent="tertiary" label="Loading metrics" />
<NwButton :loading="syncing" data-demo-result @click="syncing = true">Sync now</NwButton>
<NwButton v-if="syncing" variant="ghost" intent="neutral" @click="syncing = false"
>Cancel</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
size 'xs' | 'sm' | 'md' | 'lg' | 'xl' 'md' Spinner dimensions
intent Intent or 'current' 'current' Spinner color; current follows the text color
label string 'Loading' Screen-reader status text
decorative boolean false Drops the status role and hides it from assistive technology

A spinner does not take focus. Name the operation (Loading relays) rather than mounting several identical “Loading” statuses. Under prefers-reduced-motion it stops rotating and shows a static arc; the status text still carries the busy state.

NwAlert is a native feedback surface with title and description parts. It uses role="alert" for warning and danger (or when urgent) and role="status" otherwise; it is not an alert dialog.

Uplink restored

Traffic is flowing through the north relay again.

Certificates renewed

AlertDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwAlert, NwAlertDescription, NwAlertTitle, NwButton, NwProvider } from '@nyxwire/vue'
const visible = ref(true)
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-3">
<NwAlert v-if="visible" dismissible data-demo-result @dismiss="visible = false">
<NwAlertTitle>Uplink restored</NwAlertTitle>
<NwAlertDescription>Traffic is flowing through the north relay again.</NwAlertDescription>
</NwAlert>
<NwButton v-else variant="outline" intent="neutral" class="self-start" @click="visible = true"
>Restore notice</NwButton
>
<NwAlert intent="success" variant="outline" title="Certificates renewed" />
<NwAlert intent="danger" variant="solid" cut>
<NwAlertTitle>Relay south-2 is down</NwAlertTitle>
<NwAlertDescription>Requests fail over to south-1.</NwAlertDescription>
</NwAlert>
</div>
</NwProvider>
</template>
<NwAlert>
<template #icon />
<NwAlertTitle />
<NwAlertDescription />
<template #actions />
</NwAlert>
Prop Type Default Effect
Appearance see above 'info', 'soft', 'md' Tone, surface, padding and motifs
title string unset Shortcut for an NwAlertTitle before the slot
urgent boolean false Forces role="alert"
hideIcon boolean false Hides the intent icon; the icon slot replaces it
dismissible boolean false Adds a native dismiss button that emits dismiss
dismissLabel string 'Dismiss' Dismiss button name

The dismiss button emits dismiss without removing the alert; you control visibility. Tab and Enter or Space operate it. An alert role announces content that appears after load; one present at page load is read in place. It does not trap focus or replace a confirmation dialog: use NwAlertDialog from Overlays for that.

NwLink renders Reka Primitive as an anchor. External links add an arrow, a screen-reader hint and safe new-tab attributes.

LinkDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwLink, NwProvider } from '@nyxwire/vue'
const locked = ref(false)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-x-6 gap-y-3 text-sm">
<NwLink href="/vue/">Vue overview</NwLink>
<NwLink href="/foundations/flavors/" variant="muted">Flavors</NwLink>
<NwLink href="/tailwind/merging/" variant="subtle">Class merging</NwLink>
<NwLink href="https://reka-ui.com" external>Reka UI</NwLink>
<NwLink href="/vue/actions/" :disabled="locked" data-demo-result>Billing</NwLink>
<NwButton
size="xs"
variant="outline"
intent="neutral"
:aria-pressed="locked"
@click="locked = !locked"
>{{ locked ? 'Enable billing link' : 'Disable billing link' }}</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
variant 'default' | 'muted' | 'subtle' 'default' Link ink (link role color) and underline
href string unset Destination
external boolean false target="_blank" with rel="noopener noreferrer"
externalLabel string '(opens in a new tab)' Hidden external-link hint
disabled boolean false Drops href and sets aria-disabled
as PrimitiveProps['as'] 'a' Rendered element; use as-child for a router link

Links activate with Enter. A disabled link has no href, so it leaves the tab order; explain nearby why it is unavailable. With as-child, the child owns its content and the external hint is not added.

NwProgress wraps Reka ProgressRoot and supplies the ProgressIndicator. Pass null or omit modelValue for an indeterminate operation.

40%
ProgressDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwProgress, NwProvider } from '@nyxwire/vue'
const value = ref(40)
</script>
<template>
<NwProvider>
<div class="flex w-full max-w-sm flex-col gap-4">
<NwProgress :model-value="value" label="Rollout" glow data-demo-result />
<div class="flex items-center gap-3">
<NwButton size="sm" :disabled="value >= 100" @click="value = Math.min(100, value + 20)"
>Advance</NwButton
>
<NwButton size="sm" variant="ghost" intent="neutral" @click="value = 0">Reset</NwButton>
<span class="font-mono text-sm text-fg-muted">{{ value }}%</span>
</div>
<NwProgress :model-value="72" intent="success" size="sm" label="Disk used" />
<NwProgress :model-value="null" intent="secondary" size="xs" label="Connecting" />
</div>
</NwProvider>
</template>
Prop Type Default Effect
modelValue number | null unset Current value; null is indeterminate
max number 100 Scale of the indicator
intent Intent 'primary' Indicator tone
size 'xs' | 'sm' | 'md' | 'lg' 'md' Track height
glow boolean false Glow around the track
label string unset aria-label when no visible label names it

The remaining ProgressRootProps and emits pass through. Determinate progress exposes role="progressbar" with aria-valuenow; indeterminate progress omits the value and sweeps instead, or shows a steady tinted track under reduced motion. It takes no keyboard input and does not announce each change.

NwMeter is a native <meter> for a measurement within a known range (disk use, load), as opposed to task progress. The browser colors it from low, high and optimum.

CPU load35%
MeterDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwMeter, NwProvider } from '@nyxwire/vue'
const load = ref(35)
</script>
<template>
<NwProvider>
<div class="flex w-full max-w-sm flex-col gap-3">
<div class="flex items-center justify-between text-sm">
<span class="text-fg-muted">CPU load</span>
<span class="font-mono text-fg">{{ load }}%</span>
</div>
<NwMeter label="CPU load" :value="load" :low="50" :high="80" :optimum="20" data-demo-result />
<div class="flex gap-2">
<NwButton
size="sm"
variant="outline"
intent="neutral"
@click="load = Math.min(100, load + 25)"
>Add load</NwButton
>
<NwButton size="sm" variant="ghost" intent="neutral" @click="load = 35">Reset</NwButton>
</div>
<NwMeter label="Storage" :value="0.62" :max="1" />
</div>
</NwProvider>
</template>
Prop Type Default Effect
label string required aria-label of the meter
value number required Current measurement
min, max number 0, 100 Range
low, high number unset Thresholds of the low and high regions
optimum number unset Preferred value: the region holding it fills primary, the next one warning and the farthest danger

Native meters expose role="meter" with their value. Show the number in text as well, as the demo does, because the bar’s color alone does not tell the value.

NwRating composes Reka RatingRoot, RatingItem and RatingItemIndicator. Readonly mode instead renders a single labelled role="img" and accepts fractional values.

3 of 5
RatingDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwProvider, NwRating } from '@nyxwire/vue'
const score = ref(3)
</script>
<template>
<NwProvider>
<div class="flex flex-wrap items-center gap-x-6 gap-y-3">
<div class="flex items-center gap-3">
<NwRating v-model="score" label="Rate this release" />
<span class="font-mono text-sm text-fg-muted" aria-live="polite" data-demo-result
>{{ score }} of 5</span
>
</div>
<NwRating readonly :model-value="3.5" size="sm" label="Average rating" />
</div>
</NwProvider>
</template>
Prop Type Default Effect
modelValue number unset v-model; emits update:modelValue
size 'sm' | 'md' | 'lg' 'md' Star dimensions
readonly boolean false Display-only role="img" reading “3.5 out of 5 stars”
label string unset (interactive fallback 'Rating') Accessible name
length number 5 Number of stars
step RatingRootProps['step'] 1 Selection step

The remaining Reka rating props and emits pass through, except as and asChild. Each star is named “N stars”. Arrow keys move between stars and Space selects; readonly mode has no interactive stops. Label the rating with what is being rated.

NwTable and its parts render Reka Primitive with native table elements. The root adds a horizontal scroll wrapper, not a grid keyboard model or a sorting engine.

Relays by latency
RelayStatus
north-112 msHealthy
east-121 msHealthy
south-248 msDown
3 relays · north-1 is pinned
TableDemo.vue
<script setup lang="ts">
import { computed, ref } from 'vue'
import {
NwBadge,
NwProvider,
NwTable,
NwTableBody,
NwTableCell,
NwTableFooter,
NwTableHead,
NwTableHeader,
NwTableRow,
} from '@nyxwire/vue'
const relays = [
{ name: 'north-1', latency: 12, healthy: true },
{ name: 'south-2', latency: 48, healthy: false },
{ name: 'east-1', latency: 21, healthy: true },
] as const
const direction = ref<'ascending' | 'descending'>('ascending')
const rows = computed(() =>
relays.toSorted((a, b) =>
direction.value === 'ascending' ? a.latency - b.latency : b.latency - a.latency,
),
)
</script>
<template>
<NwProvider>
<NwTable caption="Relays by latency" striped hover>
<NwTableHeader>
<NwTableRow>
<NwTableHead>Relay</NwTableHead>
<NwTableHead :sort="direction">
<button
type="button"
class="cursor-pointer bg-transparent p-0 font-[inherit] text-inherit focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
@click="direction = direction === 'ascending' ? 'descending' : 'ascending'"
>
Latency
</button>
</NwTableHead>
<NwTableHead>Status</NwTableHead>
</NwTableRow>
</NwTableHeader>
<NwTableBody>
<NwTableRow v-for="relay in rows" :key="relay.name" :selected="relay.name === 'north-1'">
<NwTableCell class="font-mono">{{ relay.name }}</NwTableCell>
<NwTableCell class="font-mono">{{ relay.latency }} ms</NwTableCell>
<NwTableCell>
<NwBadge :intent="relay.healthy ? 'success' : 'danger'" dot>{{
relay.healthy ? 'Healthy' : 'Down'
}}</NwBadge>
</NwTableCell>
</NwTableRow>
</NwTableBody>
<NwTableFooter>
<NwTableRow>
<NwTableCell colspan="3">3 relays · north-1 is pinned</NwTableCell>
</NwTableRow>
</NwTableFooter>
</NwTable>
</NwProvider>
</template>
<NwTable>
<NwTableCaption />
<NwTableHeader><NwTableRow><NwTableHead /></NwTableRow></NwTableHeader>
<NwTableBody><NwTableRow><NwTableCell /></NwTableRow></NwTableBody>
<NwTableFooter><NwTableRow><NwTableCell /></NwTableRow></NwTableFooter>
</NwTable>
Component / prop Type Default Effect
Table striped, hover, compact boolean false Alternate rows, hover fill, reduced padding
Table caption string unset Renders an NwTableCaption and turns the scroll wrapper into a named, focusable region
Table as PrimitiveProps['as'] 'table' Table element
TableHead sort 'ascending' | 'descending' | 'none' unset aria-sort and direction icon
TableRow selected boolean false Selection bar, data-selected and aria-selected

Keep a caption and column headings (NwTableHead sets scope="col"). With caption, the wrapper is a tab stop so keyboard users can scroll a wide table. sort only describes the order: put a button in the heading, as the demo does, and sort your rows. Do not make a clickable row the only way to open a record.

NwDataTable builds an NwTable from typed rows and column accessors and sorts them itself. Sortable headings become buttons; clicking one sorts ascending, then toggles the direction.

Recent deployments
RegionState
gatewayeu-west14live
authus-east3rolling
billingap-south42failed
searcheu-west27live
unsorted
DataTableDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwBadge, NwDataTable, NwProvider } from '@nyxwire/vue'
import type { NwColumn, NwSort } from '@nyxwire/vue'
interface Deployment {
readonly id: number
readonly service: string
readonly region: string
readonly minutes: number
readonly state: 'live' | 'rolling' | 'failed'
}
const rows: readonly Deployment[] = [
{ id: 1, service: 'gateway', region: 'eu-west', minutes: 14, state: 'live' },
{ id: 2, service: 'auth', region: 'us-east', minutes: 3, state: 'rolling' },
{ id: 3, service: 'billing', region: 'ap-south', minutes: 42, state: 'failed' },
{ id: 4, service: 'search', region: 'eu-west', minutes: 27, state: 'live' },
]
const columns: readonly NwColumn<Deployment>[] = [
{ key: 'service', label: 'Service', cell: (row) => row.service, sortable: true },
{ key: 'region', label: 'Region', cell: (row) => row.region },
{ key: 'minutes', label: 'Age (min)', cell: (row) => row.minutes, sortable: true },
{ key: 'state', label: 'State', cell: (row) => row.state },
]
const intents = { live: 'success', rolling: 'info', failed: 'danger' } as const
const sort = ref<NwSort>()
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-2">
<NwDataTable
v-model:sort="sort"
caption="Recent deployments"
:rows="rows"
:columns="columns"
:row-key="(row) => row.id"
hover
>
<template #cell="{ row, column }">
<NwBadge v-if="column.key === 'state'" :intent="intents[row.state]">{{
row.state
}}</NwBadge>
<template v-else>{{ column.cell(row) }}</template>
</template>
</NwDataTable>
<span class="font-mono text-xs text-fg-muted" aria-live="polite" data-demo-result>{{
sort ? `sorted by ${sort.key}, ${sort.direction}` : 'unsorted'
}}</span>
</div>
</NwProvider>
</template>
Prop Type Default Effect
caption string required Caption and region name
rows readonly Row[] required Data, never mutated
columns readonly NwColumn<Row>[] required key, label, cell(row), sortable, compare(a, b)
rowKey (row: Row) => string | number required Stable key of each row
v-model:sort NwSort ({ key, direction }) unset Active sort; unset keeps the input order
emptyText string 'No rows' Single cell shown when rows is empty
striped, hover, compact boolean false Forwarded to NwTable

The cell slot receives { row, column } to render rich cells, such as the demo’s badges. Without compare, numbers sort numerically and strings with a numeric-aware localeCompare. Sorted headings carry aria-sort; unsorted sortable ones read none.

NwStat is a description list (dl) that pairs a label with a headline value and an optional detail line.

Requests
1.2M
last 24 h
Error rate
0.04%
target below 0.5%
p95 latency
38 ms
StatDemo.vue
<script setup lang="ts">
import { computed, ref } from 'vue'
import { NwButton, NwProvider, NwStat } from '@nyxwire/vue'
const windows = [
{ label: '24 h', requests: '1.2M', errors: '0.04%', p95: '38 ms' },
{ label: '7 d', requests: '8.9M', errors: '0.11%', p95: '41 ms' },
] as const
const index = ref(0)
const current = computed(() => windows[index.value] ?? windows[0])
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-4">
<div class="grid gap-4 sm:grid-cols-3" data-demo-result>
<NwStat label="Requests" :value="current.requests" :detail="`last ${current.label}`" />
<NwStat label="Error rate" :value="current.errors" detail="target below 0.5%" />
<NwStat label="p95 latency" :value="current.p95" />
</div>
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
@click="index = 1 - index"
>Show {{ windows[1 - index]?.label }}</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
label string required Term (dt)
value string | number required Headline value (dd)
detail string unset Secondary line (dd)

Format numbers before passing them (units, separators). Stats are static text: updates are not announced unless you wrap them in a live region.

NwHudPanel renders Reka Primitive as a section with a cut-corner frame, a header label and a status readout; NwNeonText renders it as a span. NwStatBar is a native, labelled role="meter" with a segmented fill. This demo runs on the circuit grid to check legibility.

Core telemetry

Nominal
Core online
Shield
Power
Signal
NYXWIRE
HudDemo.vue
<script setup lang="ts">
import { Shield } from '@lucide/vue'
import { computed, ref } from 'vue'
import { NwButton, NwHudPanel, NwNeonText, NwProvider, NwStatBar } from '@nyxwire/vue'
const shield = ref(80)
const critical = computed(() => shield.value <= 20)
</script>
<template>
<NwProvider>
<NwHudPanel
title="Core telemetry"
title-as="p"
:status="critical ? 'Alarm' : 'Nominal'"
:alarm="critical"
:intent="critical ? 'danger' : 'primary'"
scanlines
class="w-full max-w-md"
>
<template #actions>
<NwButton size="xs" variant="ghost" intent="neutral" @click="shield = 80">Reset</NwButton>
</template>
<div class="flex flex-col gap-4">
<NwNeonText :intent="critical ? 'danger' : 'success'" glitch class="font-display text-lg">{{
critical ? 'Shield failing' : 'Core online'
}}</NwNeonText>
<NwStatBar
label="Shield"
:value="shield"
:intent="critical ? 'danger' : 'tertiary'"
:critical="critical"
glow
:value-text="`${shield} percent shield`"
data-demo-result
><template #icon><Shield class="size-3.5" aria-hidden="true" /></template
></NwStatBar>
<NwStatBar label="Power" :value="64" intent="warning" :segments="20" size="sm" />
<NwStatBar label="Signal" :value="92" intent="secondary" size="lg" hide-value />
</div>
<template #footer>
<NwButton
size="sm"
intent="danger"
variant="soft"
:disabled="shield === 0"
@click="shield = Math.max(0, shield - 30)"
>Take a hit</NwButton
>
<NwNeonText wire glow="halo" class="ms-auto font-mono text-xs">NYXWIRE</NwNeonText>
</template>
</NwHudPanel>
</NwProvider>
</template>
<NwHudPanel>
<template #header />
<template #status />
<template #actions />
<NwNeonText />
<NwStatBar><template #icon /></NwStatBar>
<template #footer />
</NwHudPanel>
Component / prop Type Default Effect
HudPanel intent Intent 'primary' Header and frame tone
HudPanel size 'xs' | 'sm' | 'md' | 'lg' 'md' Padding of header, body and footer
HudPanel title string unset Header title; also names the panel (aria-labelledby)
HudPanel titleAs 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' 'h3' Title element
HudPanel status string unset Status readout led by a diamond marker; the status slot replaces it
HudPanel alarm boolean false Pulses the status marker; the text stays steady
HudPanel cut boolean true Chamfered corners
HudPanel wire, scanlines, solid boolean false Gradient edge / scanline overlay / opaque sunken fill
HudPanel glow 'sm' | 'md' | 'lg' unset Intent bloom
HudPanel as PrimitiveProps['as'] 'section' Root element
StatBar label, value string, number required Meter name and current value
StatBar max, segments number 100, 10 Maximum value and segment count
StatBar intent, size Intent, 'sm' | 'md' | 'lg' 'primary', 'md' Tone and dimensions
StatBar glow, critical, hideValue boolean false Glowing readout, pulsing danger readout, hidden number
StatBar valueText string unset aria-valuetext, e.g. “42 percent shield”
NeonText intent Intent 'primary' Ink and glow color
NeonText glow 'text' | 'halo' | 'none' 'text' Glyph glow, whole-word halo, or flat ink
NeonText wire boolean false Fills the text with the wire gradient
NeonText glitch boolean false Glitch burst on hover and focus
NeonText as PrimitiveProps['as'] 'span' Text element

The stat bar clamps value between zero and max and exposes aria-valuemin, aria-valuemax and aria-valuenow; its visible number is aria-hidden because the meter already carries it. These displays do not take focus or announce every update, and the panel’s status marker is decorative, so keep the status in text. Pulses, flicker and glitch stop under prefers-reduced-motion. Use solid when the content behind the panel makes the translucent fill hard to read.

NwCode renders inline code, or with block a pre that keeps whitespace and scrolls horizontally.

Set RELAY_REGION before running nyxwire deploy.

RELAY_REGION=eu-west
RELAY_TIMEOUT=5000
RELAY_TLS=strict
CodeDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwCode, NwProvider } from '@nyxwire/vue'
const format = ref<'env' | 'json'>('env')
const samples = {
env: 'RELAY_REGION=eu-west\nRELAY_TIMEOUT=5000\nRELAY_TLS=strict',
json: '{\n "region": "eu-west",\n "timeout": 5000,\n "tls": "strict"\n}',
} as const
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-3">
<p class="m-0 text-sm text-fg-muted">
Set <NwCode>RELAY_REGION</NwCode> before running <NwCode>nyxwire deploy</NwCode>.
</p>
<NwCode block data-demo-result>{{ samples[format] }}</NwCode>
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
@click="format = format === 'env' ? 'json' : 'env'"
>Show as {{ format === 'env' ? 'JSON' : '.env' }}</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
block boolean false <pre tabindex="0"><code> block instead of inline <code>

The block is a tab stop so keyboard users can scroll long lines. It does not highlight syntax; for highlighted listings in Astro, use Expressive Code like the source panels on this page.

NwList renders a styled ul or ol, from an items array or from your own li elements.

  1. Install @nyxwire/vue
  2. Import the stylesheet
  3. Wrap the app in NwProvider
  • Slot content works too: bold and links stay inline.
ListDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwList, NwProvider } from '@nyxwire/vue'
const ordered = ref(true)
const steps = ['Install @nyxwire/vue', 'Import the stylesheet', 'Wrap the app in NwProvider']
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-3">
<NwList :ordered="ordered" :items="steps" data-demo-result />
<NwList>
<li>Slot content works too: <strong>bold</strong> and links stay inline.</li>
</NwList>
<NwButton
size="sm"
variant="outline"
intent="neutral"
class="self-start"
:aria-pressed="ordered"
@click="ordered = !ordered"
>Numbered</NwButton
>
</div>
</NwProvider>
</template>
Prop Type Default Effect
ordered boolean false ol with numbers instead of ul with markers
items readonly string[] unset Text items; the default slot replaces them

Lists keep their native semantics, so screen readers announce the item count. Use ordered only when the order matters, such as steps.

NwEmpty is the placeholder for a collection with no items: a title, an optional description and a slot for the next action.

No API keys

Create a key to let services call the relay.

EmptyDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwButton, NwEmpty, NwList, NwProvider } from '@nyxwire/vue'
const keys = ref<string[]>([])
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-3">
<NwEmpty
v-if="keys.length === 0"
title="No API keys"
description="Create a key to let services call the relay."
>
<NwButton size="sm" cut @click="keys.push('nw_live_01')">Create key</NwButton>
</NwEmpty>
<template v-else>
<NwList :items="keys" data-demo-result />
<NwButton size="sm" variant="ghost" intent="neutral" class="self-start" @click="keys = []"
>Revoke all</NwButton
>
</template>
</div>
</NwProvider>
</template>
Prop Type Default Effect
title string required Bold heading text (strong)
description string unset Supporting paragraph

Put the primary way forward in the slot, as a real button or link. The empty state is not a live region; when it replaces content after an action, announce the change separately if it matters.

NwLayout is a div that arranges its children with one of the four layout primitives of the CSS layer.

north-1
south-2
east-1
LayoutDemo.vue
<script setup lang="ts">
import { ref } from 'vue'
import { NwLayout, NwProvider, NwToggleGroup, NwToggleGroupItem } from '@nyxwire/vue'
const layout = ref<'stack' | 'cluster' | 'grid'>('cluster')
function choose(value: unknown) {
if (value === 'stack' || value === 'cluster' || value === 'grid') layout.value = value
}
</script>
<template>
<NwProvider>
<div class="flex w-full flex-col gap-4">
<NwToggleGroup
:model-value="layout"
type="single"
size="sm"
variant="outline"
aria-label="Arrangement"
@update:model-value="choose"
>
<NwToggleGroupItem value="stack">Stack</NwToggleGroupItem>
<NwToggleGroupItem value="cluster">Cluster</NwToggleGroupItem>
<NwToggleGroupItem value="grid">Grid</NwToggleGroupItem>
</NwToggleGroup>
<NwLayout :layout="layout" data-demo-result>
<div
v-for="name in ['north-1', 'south-2', 'east-1']"
:key="name"
class="rounded-md border border-line bg-panel px-3 py-2 font-mono text-sm"
>
{{ name }}
</div>
</NwLayout>
</div>
</NwProvider>
</template>
Prop Type Default Effect
layout 'container' | 'stack' | 'cluster' | 'grid' 'stack' Centered 72rem column, vertical stack, wrapping row, or auto-fit grid of 16rem minimum columns

The arrangement changes only visual placement; DOM order stays the reading and tab order, so keep it meaningful. Every arrangement wraps or reflows down to 320 px.