An inline quotation component rendered as a native q element. Automatically adds quotation marks via CSS.

import Quote from "@radui/ui/Quote"
Example
To be or not to be, that is the question.The only way to do great work is to love what you do.
React
"use client" import Quote from "@radui/ui/Quote" const QuoteExample = () => { return ( <div className="flex flex-col gap-4"> <Quote>To be or not to be, that is the question.</Quote> <Quote>The only way to do great work is to love what you do.</Quote> </div> ) } export default QuoteExample
  • Renders the q element, so the browser adds the quotation marks for the language
  • truncate clips long quotes to one line with an ellipsis

Import all parts of the component and piece them together.

React
import Quote from "@radui/ui/Quote" export default () => { return <Quote>Your quote here.</Quote> }

An inline quotation rendered as a native q element.

PropTypeDefaultDescription
truncate
booleanfalse

Truncates overflowing text with an ellipsis. Sets data-truncate on the element.

customRootClass
string""

Overrides the Theme classNamespace for this component only.

className
string""

Additional CSS classes applied to the element.

Example
The only way to do great work is to love what you do. If you haven't found it yet, keep looking.
React
"use client" import Quote from "@radui/ui/Quote" const QuoteTruncate = () => { return ( <div className="flex flex-col gap-6 max-w-sm"> <Quote truncate>The only way to do great work is to love what you do. If you haven't found it yet, keep looking.</Quote> </div> ) } export default QuoteTruncate