组件目录

Testimonial Wall客户评价墙

客户评价分列上下滚动,每列使用不同的起点和速度。悬停、聚焦或触屏按住可暂停一列,鼠标拖动可浏览其他评价。

npx https://kalos-ui-six.vercel.app/cli/kalos-ui-0.3.12.tgz add testimonial-wall
MCP

Testimonials

Loved by product teams

  • We replaced three half-finished internal kits with it in a sprint. Our product finally looks like one product.

    Lena HartmannDesign Lead · Fieldnote
  • Copy, paste, ship. Then actually read the code and learn something.

    Mara LindqvistProduct Designer · Kitewise
  • It feels like it was built by people who care about the last 5%.

    Camille RouxDesign Engineer · Sundial
  • The phone layouts are the real surprise. Everything holds up at 320 pixels, which I can't say about our own app.

    Theo BrandtMobile Engineer · Copperleaf
  • The motion is the part nobody notices – which is exactly the point.

    Jonas WeberStaff Engineer · Ledgerline
  • Our designers stopped redlining spacing in reviews. The defaults are calm and consistent, and dark mode just works without a second pass.

    Daniel OkaforHead of Design · Northpeak
  • We shipped a new onboarding flow in two days. The dropzone and the command menu alone saved us a week of polish – the empty states and the little transitions were already better than what we had planned.

    Sofia MarinoProduct Manager · Brightloop
  • Accessible by default, without me having to argue for it in planning.

    Marcus LeeAccessibility Lead · Quillstack
  • I opened the date range picker expecting to fix the keyboard handling. There was nothing to fix. Focus, arrows, Escape, screen reader labels – all there, and it still felt light.

    Priya RamanFrontend Engineer · Tidepool Health
  • Every component is one file with no dependencies. Our bundle audit took five minutes.

    Noah FischerTech Lead · Parcelwise
  • Finally a library that doesn't look like every other AI-generated dashboard.

    Elif DemirBrand Designer · Harbor Studio
  • I use it as a reference as much as a library. When a junior asks how a height animation should feel, I just send them the source.

    Hana SatoPrincipal Designer · Plainview

安装

在项目根目录运行,安装源码。

npx https://kalos-ui-six.vercel.app/cli/kalos-ui-0.3.12.tgz add testimonial-wall

使用

React
import { KalosTestimonialWall, testimonials } from "@/components/blocks/testimonial-wall";
export function CustomerQuotes() {  return (    <KalosTestimonialWall      items={testimonials}      columns={3}      speed={26}      label="客户评价"    />  );}

API

属性类型默认值说明
itemsTestimonial[]内置示例评价列表。空数组会显示空状态,评价数量少于列数时自动减少列数。
items[].quotestring必填评价正文。保留换行,最多显示十行。
items[].namestring必填作者名称,缺少头像时用于生成姓名缩写。
items[].rolestring—作者职位,显示在姓名下方。
items[].companystring—作者所在机构,与职位以间隔点分隔。
items[].avatarstring—头像图片地址。缺少图片或加载失败时使用姓名缩写。
items[].ratingnumber—1 至 5 星,省略时隐藏星级。
items[].verifiedbooleanfalse在作者姓名旁显示认证图标。
columns1 | 2 | 33最大列数。容器宽度低于 740px 时最多两列,低于 480px 时一列。
speednumber28第一列每秒移动的像素数。第二列反向,第三列略快。
pauseOnHoverbooleantrue指针移入一列时减速暂停,移出时恢复。键盘聚焦始终暂停该列。
labelstring"What customers say"评价墙的可访问名称。
classNamestring—附加到根元素的类名。Clean 可用 --ui-twc-height 和 --ui-twc-fade 调整高度及渐隐距离,Classic 对应 --ui-tw-height 和 --ui-tw-fade。
appearance"clean" | "classic""clean"选择卡片边缘、头像尺寸、排版和渐隐样式。

键盘操作

Tab / Shift + Tab
向前或向后聚焦一张评价卡;当前列暂停并将卡片移入可见范围,焦点离开后继续滚动。