Skip to content

feat: add Astro, Svelte, and Nuxt.js wrapper components#109

Open
Muneerali199 wants to merge 2 commits intoAOSSIE-Org:mainfrom
Muneerali199:add/astro-svelte-nuxt-wrappers
Open

feat: add Astro, Svelte, and Nuxt.js wrapper components#109
Muneerali199 wants to merge 2 commits intoAOSSIE-Org:mainfrom
Muneerali199:add/astro-svelte-nuxt-wrappers

Conversation

@Muneerali199
Copy link
Copy Markdown
Contributor

Addressed Issues:

Fixes #46, #47, #48

Screenshots/Recordings:

N/A (library code only)

Additional Notes:

This PR adds native framework wrappers for three popular frameworks:

Added files:

  1. src/social-share-button-astro.astro - Astro component with client-side hydration
  2. src/social-share-button-svelte.svelte - Svelte/SvelteKit component
  3. src/social-share-button-nuxt.vue - Nuxt.js/Vue 3 component

Key features:

  • All wrappers include SSR guards (typeof window !== 'undefined')
  • Follow the same pattern as the existing React wrapper
  • Support all SocialShareButton options as props
  • Proper cleanup on component destruction

Usage Examples:

Astro:

---
import SocialShareButton from './components/SocialShareButton.astro';
---
<SocialShareButton url="https://example.com" client:load />

Svelte:

<script>
  import SocialShareButton from './SocialShareButton.svelte';
</script>
<SocialShareButton url="https://example.com" />

Nuxt/Vue:

<template>
  <SocialShareButton url="https://example.com" />
</template>
<script setup>
import SocialShareButton from './SocialShareButton.vue';
</script>

Checklist

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

AI Usage Disclosure

  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy.

- Added social-share-button-astro.astro for Astro framework
- Added social-share-button-svelte.svelte for Svelte/SvelteKit
- Added social-share-button-nuxt.vue for Nuxt.js/Vue 3
- All wrappers include SSR guards (typeof window checks)
- Follow the same pattern as the existing React wrapper

Fixes AOSSIE-Org#46, AOSSIE-Org#47, AOSSIE-Org#48
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 16, 2026

Warning

Rate limit exceeded

@Muneerali199 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 14 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1a9a102b-7b36-4359-80fa-6d3930ec90f5

📥 Commits

Reviewing files that changed from the base of the PR and between 9e7e113 and 5a94f3b.

📒 Files selected for processing (3)
  • src/social-share-button-astro.astro
  • src/social-share-button-nuxt.vue
  • src/social-share-button-svelte.svelte
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add Astro Framework Support

1 participant