Menu

Quote

Blockquote & pull quote. 3 styles.

The Sylhet green is the first tea my mother asks about when I visit.
SRSadia RahmanRegular customer, Gulshan

Installation

$ npx uix-ui@latest add quote

This copies the file into components/ui/quote.tsx in your project. npx shadcn@latest add @uix/quote works too.

Usage

quote.tsx
import { Quote } from "@/components/ui/quote";

<div style={{ width: 420, maxWidth: "100%" }}>
  <Quote author="Sadia Rahman" role="Regular customer, Gulshan" avatar={<Avatar initials="SR" />}>
    The Sylhet green is the first tea my mother asks about when I visit.
  </Quote>
</div>

Props

PropTypeDefaultDescription
appearancedefault | accent | large"default"
authorReact.ReactNode–
roleReact.ReactNode–
avatarReact.ReactNode–Avatar beside the author (for example <Avatar initials="RS" />).

Everything else is passed to the root element, so className, aria-* and event handlers work as usual.

Dependencies

Installed for you by the CLI.

  • class-variance-authority
  • clsx
  • tailwind-merge
  • lib/utils.ts
  • components/ui/icons.tsx
esc

↑↓ to navigate · ↵ to select · esc to close