ValyroUI English version

Split-Flap Board

Механическое табло: перелистываются только изменившиеся символы. Бесплатно, MIT · Анимированные компоненты › Наклейки, билеты и табло

Установка

npx valyro-cli@latest add split-flap-board
npx shadcn@latest add https://valyro.xyz/r/split-flap-board.json
npm install valyro-ui

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

Пропсы

PropTypeDefault
value *stringThe text to show. The app computes it (a countdown, a status); the board only displays it.
columnsnumberFixed number of cells per row, for a stable width. Default: as many as the value has characters.
align'start' | 'center' | 'end''start'Position of the value inside the fixed grid. Default start.
overflow'wrap' | 'truncate''wrap'With columns: longer text wraps by words onto more rows (wrap, default) or is cut (truncate).
durationnumber320How long one cell takes to flip, ms. Default 320.
staggernumber30Delay between consecutive changed cells, ms. Default 30.
announce'off' | 'polite''off'polite reads every new value aloud; off (default) leaves it to be read on demand.
labelstringName of the reading, shown above the board, such as "Doors open in".
variant'dense' | 'sign' | 'minimal''dense'Look: dense (default) dark tiles, sign large tiles of a station sign, minimal flat tiles without frames.
onSettled(value: string) => voidCalled once the latest value is fully on the board (after its flips, or at once without motion).
labelsPartial<SplitFlapBoardLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Peel Sticker — Наклейка отклеивается за угол и открывает содержимое
  • Scratch Reveal — Стираемое покрытие над текстом или картинкой
  • Tear-off Ticket — Билет с корешком, который отрывается по перфорации
  • Swipe Action Card — Горизонтальный свайп открывает действия карточки
  • Toggle — Кнопка-переключатель с пружинным откликом
  • Flip Button — Кнопка с двумя сторонами, переворачивается на пружине
  • Liquid Button — Кнопка, которая заполняется «жидкостью» при наведении
  • Theme Toggler — Смена светлой и тёмной темы с раскрытием через View Transitions
  • GitHub Stars Button — Ссылка на репозиторий с прокручивающимся числом звёзд
  • Share Button — Кнопка, раскрывающая иконки соцсетей
  • Code Tabs — Варианты кода во вкладках: npm, pnpm, bun — с копированием
  • Number Wheel — Число на вращающемся барабане с соседними значениями

Назад: Tear-off Ticket · Далее: Swipe Action Card · Весь раздел «Анимированные компоненты»