Valyro 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).
durationnumber320Tempo of one flip, ms: the fall takes about 40% of it, the landing settles in the rest. 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 — Горизонтальный свайп открывает действия карточки
  • Feature Hotspots — Точки на изображении: нажатие открывает пояснение к детали
  • Exploded Layers — Подготовленные слои изображения раздвигаются с подписями
  • Prediction Card — Сначала предположение читателя, затем ответ и разбор
  • Detail Dial — Выбор глубины объяснения: кратко, подробно, полный разбор
  • Version Scrubber — Просмотр подготовленных версий одним ползунком
  • Page Minimap — Мини-карта длинной страницы с видимой областью
  • Sticker Board — Свободная композиция из фотографий, наклеек и заметок: двигать и поворачивать
  • Lasso Select — Выделение группы карточек рамкой

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