MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / SimpleBanner

Function SimpleBanner

src/showcase/blocks/banner/SimpleBanner.tsx:3–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1'use client'
2
3const SimpleBanner = () => {
4 return (
5 <>
6 <div
7 // replace `absolute` with `fixed` if you want the banner to be fixed on the page Also Animation will not work if you use `absolute`
8 className={`absolute left-0 right-0 top-0 z-50 transition-all duration-300 ease-in-out`}
9 >
10 <div className="flex w-full items-center justify-center gap-x-6 bg-red-500 px-6 py-3 sm:px-3.5">
11 <div className="flex items-center text-sm font-medium leading-6 text-white">
12 <p>Get 50+ Premium Components for your next project on SyntaxUI</p>
13 </div>
14 </div>
15 </div>
16 </>
17 )
18}
19
20export default SimpleBanner

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected