Merged in feat/sw-3145-move-iconchip-to-design-system (pull request #2588)

feat(SW-3145): Move IconChip to design-system

* Move IconChip to design-system


Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
Anton Gunnarsson
2025-08-01 14:21:05 +00:00
parent 630cc12215
commit 7a3ee76206
9 changed files with 10 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
import { iconChipVariants } from './variants'
interface IconChipProps {
color: 'blue' | 'green' | 'red' | null | undefined
icon: React.ReactNode
children: React.ReactNode
className?: string
}
export default function IconChip({
color,
icon,
className,
children,
}: IconChipProps) {
const classNames = iconChipVariants({
color: color,
className: className,
})
return (
<div className={classNames}>
{icon}
{children}
</div>
)
}