VPBanner
Less than 1 minute
Banner component, can be use to display banner.
Demo
Basic Banner
<VPBanner
title="Mr.Hope"
content="Where there is light, there is hope"
logo="https://mister-hope.com/logo.svg"
:actions='[
{
text: "Visit now",
link:"https://mister-hope.com",
},
{
text: "Repo",
link: "https://github/Mister-Hope/Mister-Hope.github.io",
type: "default",
},
]'
/>Options
titleRequired
stringBanner title.
content
stringBanner content.
logo
stringBanner logo.
actions
BannerAction[]Banner actions.
actions[*].textRequired
stringText of the action.
actions[*].linkRequired
stringLink of the action.
actions[*].type
"primary" | "default"Default
"primary"Type of the action.
background
stringBanner background.
color
stringBanner font color.
Tips
To make background and font color adapt to dark mode automatically, you can pass css variable, such as: var(--my-bg).
Changelog
9/28/26, 12:45 PM
View All Changelog
0c1aa-on1bd5f-on0739c-on