Back to Clerk

`as` prop removed from Astro button components

packages/upgrade/src/versions/core-3/changes/astro-as-prop-removed.md

latest466 B
Original Source

The deprecated as prop has been removed from unstyled button components in @clerk/astro. Use the asChild prop with a custom element in the default slot instead.

Affected components: SignInButton, SignUpButton, SignOutButton, CheckoutButton, PlanDetailsButton, SubscriptionDetailsButton.

diff
- <SignInButton as="a" href="/sign-in">
-   Sign in
- </SignInButton>
+ <SignInButton asChild>
+   <a href="/sign-in">Sign in</a>
+ </SignInButton>