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:
26
packages/design-system/lib/components/IconChip/index.tsx
Normal file
26
packages/design-system/lib/components/IconChip/index.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user