For Tailwind CSS v3 docs, click here.

Flip Words

A component that flips through a list of words.

通过 CLI 安装

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://registry.inspira-ui.com/flip-words.json"

手动安装

复制并粘贴以下代码:

FlipWords.vue

API

Prop 名称类型描述
wordsArrayAn array of words to be displayed and animated.
durationnumberDuration (in milliseconds) for each word to be displayed before flipping to the next word.
classstringAdditional CSS classes to apply to the component.

感谢