Text
The <ShowcaseText> component can be used to showcase text entries which link to their respective pages.
Import
Section titled “Import”import { ShowcaseText } from 'starlight-showcases'Specify a list of text entries to display using the entries prop.
Each entry should at least specify a title and link to the respective page while an optional description can be provided.
import { ShowcaseText } from 'starlight-showcases'
<ShowcaseText entries={[ { href: 'https://github.com/HiDeoo/starlight-links-validator', title: 'starlight-links-validator', description: 'Check for broken links in your Starlight pages.', }, { href: 'https://github.com/HiDeoo/starlight-typedoc', title: 'starlight-typedoc', description: 'Generate Starlight pages from TypeScript using TypeDoc.', }, ]}/> starlight-links-validator Check for broken links in your Starlight pages.
starlight-typedoc Generate Starlight pages from TypeScript using TypeDoc.
The <ShowcaseText> component accepts the following props:
entries
Section titled “entries”required
type: ShowcaseTextCardProps[]
The list of text entries 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 link to the page the text entry refers to.
required
type: string
A title for the text entry.
description
Section titled “description”type: string
An optional description for the text entry.