ValyroUI Русская версия

Radial Nav

Circular navigation with an arrow that turns to the section. Pro · Animated components › Radial menus

Navigation laid out on a circle — a HUD, a class or role picker. A needle in the hub turns the short way round to the chosen section on a spring and the chosen button unfolds its caption. Arrow keys move between sections, Home / End jump to the ends, Enter / Space chooses; the choice is aria-current.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add radial-nav
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { RadialNav } from 'valyro-ui-pro';

Props

PropTypeDefault
items *readonly RadialNavItem[]Sections around the circle, clockwise from the top.
valuestring | nullId of the chosen section (null: none).
defaultValuestring | nullnullInitial value when uncontrolled.
onValueChange(id: string | null) => voidCalled with the new value when it changes.
sizenumber180Diameter of the circle the buttons sit on, px (default 180).
buttonSizenumber44Diameter of each button, px (default 44).
centerReactNodeContent of the hub in the middle (an emblem, the current section's icon).
activation'manual' | 'automatic''manual'manual (default): arrow keys move focus and Enter / Space opens the section, so passing over a section does not navigate to it. automatic: the focused section is chosen at once (for a local switcher).
labelsPartial<RadialNavLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Radial Menu · Next: Radial Intro · All Animated components