Skip to content

Commit

Permalink
docs: add type description of hero image (#1691)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
LouisMazel and brc-dd committed Dec 30, 2022
1 parent c4870ba commit 655bca1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guide/theme-home-page.md
Expand Up @@ -48,10 +48,18 @@ interface Hero {
// Tagline displayed below `text`.
tagline?: string

// The image is displayed next to the text and tagline area.
image?: ThemeableImage

// Action buttons to display in home hero section.
actions?: HeroAction[]
}

type ThemeableImage =
| string
| { src: string; alt?: string }
| { light: string; dark: string; alt?: string }

interface HeroAction {
// Color theme of the button. Defaults to `brand`.
theme?: 'brand' | 'alt'
Expand Down

0 comments on commit 655bca1

Please sign in to comment.