Skip to content

Commit

Permalink
Add trim to merge classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis committed Oct 8, 2024
1 parent 493382b commit 3b38444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ export const mergeClasses = <ClassType = string | undefined | null>(...classes:
.filter((className, index, array) => {
return Boolean(className) && array.indexOf(className) === index;
})
.join(' ');
.join(' ')
.trim();

0 comments on commit 3b38444

Please sign in to comment.