Xzero UI
Pro library

Studio perspectivesPro

Portrait led editorial stories with a focused reading state.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/testimonial-stage
Live · keyboard ready

Use this to introduce the people behind a product or team. Use verified quotes and portrait permissions for a public site.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/testimonial-stage

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { TestimonialStage } from "@/components/xzero/blocks/testimonial-stage/testimonial-stage";

export function Stories() {
  return (
    <TestimonialStage
      className="my-24"
      onPerspectiveChange={(p) => track("testimonial_view", p)}
    />
  );
}

API reference

TestimonialStage

Portrait-led stories with a tab list of people and a quote panel. Quotes and portraits are sample data.

PropTypeDefaultDescription
classNamestring–Appended to the root section.
onPerspectiveChange(perspective: { id: string; name: string }) => void–Called when the active person changes.

Keyboard interactions

KeysAction
ArrowLeft / ArrowRightMove to the previous or next person in the tab list, wrapping around, and focus it.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components