Skip to content

Commit

Permalink
chore: deprecate classNames (#3739)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk committed Jun 17, 2023
1 parent 21e15f0 commit 99af723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/classNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*
* @param classes - An array of class names to combine.
* @returns A string containing all the class names.
*
* @deprecated Prefer twJoin instead.
*/
export function classNames(...classes: (string | undefined)[]) {
return classes.filter(Boolean).join(' ')
Expand Down

2 comments on commit 99af723

@vercel
Copy link

@vercel vercel bot commented on 99af723 Jun 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 99af723 Jun 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.