The outline banner keeps the page background and closes with a hairline border, for quieter notices above a header.
Dependencies
Interaction Type
Press the close button to dismiss the banner. The close button is reachable by keyboard and shows the accent focus ring.
Props
Options you can pass to customize this component.
messageBanner text. Defaults to "Install any component with one command, no setup beyond shadcn."
linkLabelLink text after the message. Defaults to "Get started". Pass an empty string to hide it.
hrefWhere the link points.
openControlled open state.
defaultOpenInitial open state. Defaults to true.
onOpenChangeCalled when the banner is dismissed.
dismissibleShows the dismiss button. Defaults to true.
dismissLabelAccessible label of the dismiss button. Defaults to "Dismiss banner".
Installation
How to use
<BannerOutline
message="Install any component with one command."
linkLabel="Get started"
href="/components"
/>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.