diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ccd469fc..3ebb1e11 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -39,6 +39,7 @@ function getComponents() { { text: 'Alert', link: '/components/alert' }, { text: 'Avatar', link: '/components/avatar' }, { text: 'Badge', link: '/components/badge' }, + { text: 'Banner', link: '/components/banner' }, { text: 'Breadcrumb', link: '/components/breadcrumb' }, { text: 'Button', link: '/components/button' }, { text: 'Button Group', link: '/components/button-group' }, diff --git a/docs/components/banner.md b/docs/components/banner.md new file mode 100644 index 00000000..daf44bfd --- /dev/null +++ b/docs/components/banner.md @@ -0,0 +1,81 @@ + + +# Vue Banner - Flowbite + +## Use the banner component to show marketing messages and CTA buttons at the top or bottom side of your website based on the utility classes from Tailwind CSS + +--- + +:::tip +Original reference: [https://flowbite.com/docs/components/banner/](https://flowbite.com/docs/components/banner/) +::: + +Get started with the sticky banner component coded with Tailwind CSS and Flowbite to show marketing, informational and CTA messages to your website visitors fixed to the top or bottom part of the page as the user scrolls down the main content area. + +## Default sticky banner + +Use this free example to show a text message for an announcement with a CTA link, an icon element and a close button to dismiss the banner. + + + + +```vue + +``` + +## Bottom banner position + +This example can be used to position the sticky banner on the bottom side of the page instead of the top side. + + + +```vue + +``` + +## More Examples + +For more sticky banner examples you can check [banner sections](https://flowbite.com/blocks/marketing/banner/) from Flowbite Blocks. \ No newline at end of file diff --git a/docs/components/banner/examples/FwbBannerBottomExample.vue b/docs/components/banner/examples/FwbBannerBottomExample.vue new file mode 100644 index 00000000..5c0ad46b --- /dev/null +++ b/docs/components/banner/examples/FwbBannerBottomExample.vue @@ -0,0 +1,67 @@ +