Quote

Description

The Quote component is designed to showcase testimonials or featured quotes in a visually appealing layout. It displays the quote text along with the author's name, title, and avatar. The component features a responsive design, with the avatar and quote text stacked vertically on mobile devices and side-by-side on larger screens.

Installation

bash
sabaccui add quote

Usage

Here's an example of how to use the Quote component in a Storyblok block:

Preview

John Doe's portrait

The Quote component has revolutionized how we display testimonials on our website. It's sleek, responsive, and incredibly easy to use.

John Doe

CEO, Tech Innovators

Schema

Field NameTypeDescriptionDefault Value
nametextThe name of the person being quoted-
titletextThe title or position of the quoted person-
quotemarkdownThe actual quote text, supports markdown formatting-
avatarassetThe avatar image of the quoted person (only images allowed)-

Notes

  1. The component uses a 12-column grid system for responsive layout.
  2. The avatar image is displayed in a circular format with a size of 256x256 pixels.
  3. A decorative quote icon is positioned at the bottom-right of the avatar.
  4. The quote text is rendered using a Markdown component, allowing for rich text formatting.
  5. The component is nestable, allowing it to be used within other components.

Best Practices:

  • Ensure that the avatar image is of high quality and properly cropped to fit the circular display.
  • Keep the quote text concise for better readability and visual appeal.
  • Use markdown formatting in the quote field to emphasize key points or add structure to longer quotes.
  • Consider the contrast between the text color and background when implementing this component in different design contexts.