-
Notifications
You must be signed in to change notification settings - Fork 4
Updated Readme.md #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -160,146 +160,49 @@ Once included, the component will be available to use in your project. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Example Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Quick Start | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Below is an example configuration for the `SupportUsButton` component. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Replace the placeholder text (titles, descriptions, images, links, etc.) with your own project information. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Props template — fill in your own values: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ```tsx | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Example props configuration for SupportUsButton | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Modify the values according to your project needs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const props: supportUsButtonProps = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Theme of the widget (e.g., AOSSIE, light, dark, minimal) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Theme: "AOSSIE", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Background pattern type (e.g., grid, dots) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pattern: "grid", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Theme: "", // "AOSSIE" | "light" | "dark" | "minimal" | "corporate" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pattern: "", // "AOSSIE" | "dots" | "grid" | "none" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonVariant: "", // "AOSSIE" | "primary" | "secondary" | "ghost" | "gradient" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hero: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Image: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Replace with your hero image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| src: "https://your-image-link.com/hero-image.png", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| alt: "Hero section image", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Main title shown at the top of the widget | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title: "Your Title Here", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Short description about your project or mission | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "Write a brief description about your project, organization, or the purpose of sponsorship here.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Label shown above the sponsors section | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorLabel: "Your Sponsors", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title: "", // ← your heading | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: "", // ← your subheading | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorLabel: "", // ← optional label above org info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Image: { src: "", alt: "" }, // ← hero background image, Note: Remove the prop if you do not rquire a hero image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo in Image prop note. Line 177 contains a typo: "rquire" should be "require". ✍️ Proposed fix- Image: { src: "", alt: "" }, // ← hero background image, Note: Remove the prop if you do not rquire a hero image.
+ Image: { src: "", alt: "" }, // ← hero background image, Note: Remove the prop if you do not require a hero image.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| organizationInformation: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Name of your organization | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Your Organization Name", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Short description about the organization | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "Describe your organization, its mission, and what it works on.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Optional organization logo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| logo: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| src: "https://your-image-link.com/logo.png", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| alt: "Organization Logo", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "", // ← your organization name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: "", // ← short org description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| logo: { src: "", alt: "" }, // ← org logo (or pass a string for text fallback) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update this info too. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| projectInformation: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Name of the project that is being sponsored | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Your Project Name", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Short description of the project | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "Provide a short description of the project that sponsors are supporting.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "", // ← your project name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: "",// ← short project description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
180
to
188
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider demonstrating the simpler string form for Line 183 correctly notes that logo can be an 💡 Alternative approach organizationInformation: {
name: "", // ← your organization name
description: "", // ← short org description
- logo: { src: "", alt: "" }, // ← org logo (or pass a string for text fallback)
+ logo: "", // ← org logo URL (or use { src: "", alt: "" } for an Image object)
projectInformation: {
name: "", // ← your project name
description: "",// ← short project description
},
},📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // List of sponsors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Optional — remove if you have no sponsors yet | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsors: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Sponsor Name", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| logo: "https://your-image-link.com/sponsor-logo.png", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| link: "https://sponsor-website.com", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Optional tier: Bronze | Silver | Gold | Platinum | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorshipTier: "Bronze", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Another Sponsor", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| logo: "https://your-image-link.com/sponsor-logo.png", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| link: "https://sponsor-website.com", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorshipTier: "Silver", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Company Name", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| logo: "https://your-image-link.com/company-logo.png", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| link: "https://company-website.com", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorshipTier: "Gold", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: "", logo: "", link: "", sponsorshipTier: "" }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Tiers: "Platinum" | "Gold" | "Silver" | "Bronze" (higher → bigger card) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+190
to
194
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Minor: Clarify that multiple sponsors can be added. The sponsors array structure is correct, but it might be helpful to explicitly note that users can duplicate entries to add multiple sponsors (not just list tier options). 📝 Minor clarity improvement // Optional — remove if you have no sponsors yet
sponsors: [
{ name: "", logo: "", link: "", sponsorshipTier: "" },
- // Tiers: "Platinum" | "Gold" | "Silver" | "Bronze" (higher → bigger card)
+ // Add more entries as needed. Tiers: "Platinum" | "Gold" | "Silver" | "Bronze" (higher → bigger card)
],📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ctaSection: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Call-to-action title | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title: "Support This Project", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Description encouraging users to sponsor the project | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "Explain why supporting your project matters and how people can help.", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title: "", // ← CTA heading | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: "", // ← why people should sponsor | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sponsorLink: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Platform name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "Patreon", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Sponsorship link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| url: "https://www.patreon.com/yourproject", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Optional icon for the platform | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| icon: ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <svg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xmlns="http://www.w3.org/2000/svg" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width="24" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| height="24" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <path d="M0 0h24v24H0z" fill="none" /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </svg> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Optional custom class for styling | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className: "patreon-link", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Open link in a new tab | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| newTab: true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: "GitHub Sponsors", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| url: "https://github.com/sponsors/yourproject", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| icon: ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <svg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| xmlns="http://www.w3.org/2000/svg" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width="24" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| height="24" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <path d="M0 0h24v24H0z" fill="none" /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </svg> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className: "github-sponsors-link", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| newTab: true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: "", url: "", icon: null, newTab: true }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add className too and also let the user know that this icon is a react Node type |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Add one entry per sponsorship platform | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
196
to
203
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider omitting optional Line 200 explicitly includes 🧹 Cleaner template approach ctaSection: {
title: "", // ← CTA heading
description: "", // ← why people should sponsor
sponsorLink: [
- { name: "", url: "", icon: null, newTab: true },
+ { name: "", url: "", newTab: true },
+ // Optional: add icon: YourIconComponent to any link
// Add one entry per sponsorship platform
],
},🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Button styling variant | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| buttonVariant: "AOSSIE", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Component usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <SupportUsButton {...props} />; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty strings are invalid for enum-type props.
Lines 169-171 use empty strings (
"") as placeholders forTheme,pattern, andbuttonVariant, but these props expect specific enum values. If users copy this template as-is, they'll encounter type errors or runtime issues.Recommendation: Either use valid example values (e.g.,
"AOSSIE") or omit these optional props entirely (don't include the lines). A Quick Start template should work out-of-the-box or be one small edit away from working.📝 Proposed fix using valid example values
Alternative: Omit these optional props entirely from the Quick Start template and document them separately.
📝 Committable suggestion
🤖 Prompt for AI Agents