Skip to content

Commit

Permalink
feat: add alias "cn" for concatClassNames function
Browse files Browse the repository at this point in the history
  • Loading branch information
receter committed Oct 17, 2024
1 parent f9f7259 commit 1ed1ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/utils/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export function concatClassNames(
return args.filter((item) => !!item).join(" ");
}

export const cn = concatClassNames;

export function filterKeyEnter(handler: (e: React.KeyboardEvent) => void) {
return (e: React.KeyboardEvent) => {
if (e.key === "Enter") {
Expand Down

0 comments on commit 1ed1ab2

Please sign in to comment.