Skip to content

Quotes

The <ShowcaseQuote> component can be used to showcase quotes which can link to their respective sources.

import { ShowcaseQuote } from 'starlight-showcases'

Specify a list of text entries to display using the entries prop. Each entry should at least specify the quote and author while an optional link to the source or author can be provided.

src/content/docs/showcase.mdx
import { ShowcaseQuote } from 'starlight-showcases'
<ShowcaseQuote
entries={[
{
quote: 'Starlight is amazing!',
author: 'HiDeoo',
href: 'https://github.com/HiDeoo',
},
{
quote:
'The best documentation tool!<br/><br/>Had a great experience using it for the first time.',
author: 'HiDeoo',
href: 'https://github.com/HiDeoo',
},
]}
/>
Preview
Starlight is amazing!
The best documentation tool!

Had a great experience using it for the first time.

The <ShowcaseQuote> component accepts the following props:

required
type: ShowcaseQuoteCardProps[]

The list of quotes to display. See the Usage section for an example and the entry definition for more details.

Each text entry should be an object with the following properties:

required
type: string

The quote to display in the showcase.

required
type: string

The author of the quote.

type: string

An optional link to the source or author of the quote.