Radial Nav
Круговая навигация со стрелкой, поворачивающейся к разделу. Pro · Анимированные компоненты › Круговые меню
Установка
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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
items * | readonly RadialNavItem[] | Sections around the circle, clockwise from the top. | |
value | string | null | Id of the chosen section (null: none). | |
defaultValue | string | null | null | Initial value when uncontrolled. |
onValueChange | (id: string | null) => void | Called with the new value when it changes. | |
size | number | 180 | Diameter of the circle the buttons sit on, px (default 180). |
buttonSize | number | 44 | Diameter of each button, px (default 44). |
center | ReactNode | Content 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). |
labels | Partial<RadialNavLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Похожие компоненты
- Radial Menu — Кольцевое контекстное меню по правому клику
- Radial Intro — Элементы вылетают из центра и вращаются по орбите
- Toggle — Кнопка-переключатель с пружинным откликом
- Flip Button — Кнопка с двумя сторонами, переворачивается на пружине
- Liquid Button — Кнопка, которая заполняется «жидкостью» при наведении
- Theme Toggler — Смена светлой и тёмной темы с раскрытием через View Transitions
- GitHub Stars Button — Ссылка на репозиторий с прокручивающимся числом звёзд
- Share Button — Кнопка, раскрывающая иконки соцсетей
- Code Tabs — Варианты кода во вкладках: npm, pnpm, bun — с копированием
- Number Wheel — Число на вращающемся барабане с соседними значениями
- Pin List — Список с закреплением: элементы плавно переезжают между группами
- Notification Stack — Стопка уведомлений, раскрывающаяся в список
Назад: Radial Menu · Далее: Radial Intro · Весь раздел «Анимированные компоненты»