Profiles
The <ShowcaseProfile>
component can be used to showcase profiles like GitHub users, repositories or any other profile.
Import
Usage
Specify a list of profile entries to display using the entries
prop.
Each entry should at least specify a name, picture and link to the respective page while an optional description can be provided.
The above code generates the following on the page:
Props
The <ShowcaseProfile>
component accepts the following props:
entries
required
type: ShowcaseProfileCardProps[]
The list of profile entries to display. See the Usage section for an example and the entry definition for more details.
Entry
Each profile entry should be an object with the following properties:
name
required
type: string
The name of the profile to display. The value can include HTML for formatting and additional styling.
href
required
type: string
The link to the profile page the profile represents.
picture
required
type: Promise<ImageImport> | string
The picture representing the profile. The image should be one of the following:
- A dynamic import using the relative path to the image file stored in your project
src/
directory, e.g.import('../../assets/showcase/profile.png')
. - An external URL to the image.
When using remote images, check out the “Authorizing remote images” guide to enable image optimization.
description
type: string
An optional description for the profile entry.