Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilly-monkeys-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/astro': minor
---

Add UserAvatar component
5 changes: 5 additions & 0 deletions .changeset/fancy-hats-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nuxt': minor
---

Re-export UserAvatar from Vue package
1 change: 1 addition & 0 deletions packages/astro/src/astro-components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export { default as PlanDetailsButton } from './unstyled/PlanDetailsButton.astro
*/
export { default as SignIn } from './interactive/SignIn.astro';
export { default as SignUp } from './interactive/SignUp.astro';
export { default as UserAvatar } from './interactive/UserAvatar.astro';
export { UserButton } from './interactive/UserButton';
export { UserProfile } from './interactive/UserProfile';
export { OrganizationProfile } from './interactive/OrganizationProfile';
Expand Down
11 changes: 11 additions & 0 deletions packages/astro/src/astro-components/interactive/UserAvatar.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
import type { UserAvatarProps } from '@clerk/types';
type Props = UserAvatarProps;

import InternalUIComponentRenderer from './InternalUIComponentRenderer.astro';
---

<InternalUIComponentRenderer
{...Astro.props}
component='user-avatar'
/>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const mountAllClerkAstroJSComponents = () => {
'organization-list': 'mountOrganizationList',
'organization-profile': 'mountOrganizationProfile',
'organization-switcher': 'mountOrganizationSwitcher',
'user-avatar': 'mountUserAvatar',
'user-button': 'mountUserButton',
'user-profile': 'mountUserProfile',
'sign-in': 'mountSignIn',
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export type InternalUIComponentId =
| 'organization-list'
| 'organization-profile'
| 'organization-switcher'
| 'user-avatar'
| 'user-button'
| 'user-profile'
| 'google-one-tap'
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/src/runtime/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export {
SignUp,
SignIn,
UserProfile,
UserAvatar,
UserButton,
OrganizationSwitcher,
OrganizationProfile,
Expand Down
Loading