diff --git a/README.md b/README.md index c120f4a..e5d4c8c 100644 --- a/README.md +++ b/README.md @@ -175,6 +175,7 @@ const props: supportUsButtonProps = { description: "", // ← your subheading sponsorLabel: "", // ← optional label above org info Image: { src: "", alt: "" }, // ← hero background image, Note: Remove the prop if you do not require a hero image. + fit: "", // ← use "cover" for full-width images, "contain" for logo-style images to avoid cropping }, organizationInformation: { @@ -198,7 +199,7 @@ const props: supportUsButtonProps = { description: "", // ← why people should sponsor sponsorLink: [ { - name: "Examplename" + name: "Examplename", className: "sponsor-link", url: "https://example.com/sponsor", icon: null, // This Accepts ReactNode element(JSX) diff --git a/src/components/SupportUsButton.tsx b/src/components/SupportUsButton.tsx index c9b7278..f76b0e5 100644 --- a/src/components/SupportUsButton.tsx +++ b/src/components/SupportUsButton.tsx @@ -76,13 +76,15 @@ function SupportUsButton({ className={`w-full font-sans justify-center items-center text-center ${Theme == "light" || Theme == "dark" ? classAccordingToTheme(Theme) : "bg-black text-white"} ${classNames.container}`} > {/* Hero section with optional background image*/} -