We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cf473 commit c49a872Copy full SHA for c49a872
src/components/common/chip/Chip.tsx
@@ -1,4 +1,4 @@
1
-import clsx from 'clsx'
+import { twMergeEx } from '@/lib/twMerge'
2
3
type ChipProps = {
4
label: string
@@ -21,6 +21,6 @@ const styleByLabel: Record<string, string> = {
21
22
export const Chip = ({ label, className = '' }: ChipProps): JSX.Element => {
23
const labelStyle = styleByLabel[label] || ''
24
- const chipStyle = clsx(baseStyle, labelStyle, className)
+ const chipStyle = twMergeEx(baseStyle, labelStyle, className)
25
return <span className={chipStyle}>{label}</span>
26
}
0 commit comments