Skip to content

Commit 41ae1d2

Browse files
authoredOct 30, 2023
feat(clerk-js,types): Enable avatar shimmer by default (#1972)
* feat(clerk-js): Enable avatar shimmer by default * feat(types): Enable avatar shimmer by default * chore(repo): Add Changeset
1 parent f853fb3 commit 41ae1d2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
 

‎.changeset/tough-roses-hunt.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/types': patch
4+
---
5+
6+
Avatar Shimmer will be enabled by default for `<UserButton/>` and `<OrganizationSwitcher/>`.

‎packages/clerk-js/src/ui/customizables/parseAppearance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const defaultLayout: ParsedLayout = {
4242
helpPageUrl: '',
4343
privacyPageUrl: '',
4444
termsPageUrl: '',
45-
shimmer: false,
45+
shimmer: true,
4646
};
4747

4848
/**

‎packages/types/src/appearance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export type Layout = {
637637
privacyPageUrl?: string;
638638
/**
639639
* This option enables the shimmer animation for the avatars of <UserButton/> and <OrganizationSwitcher/>
640-
* @default false
640+
* @default true
641641
*/
642642
shimmer?: boolean;
643643
};

0 commit comments

Comments
 (0)
Please sign in to comment.