Feat: Using IconFont as an additional icon library #3221 (#7427)

### What problem does this PR solve?
Feat: Using IconFont as an additional icon library #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-30 13:09:42 +08:00
committed by GitHub
parent ab27609a64
commit 1fc52033ba
11 changed files with 158 additions and 71 deletions

View File

@ -0,0 +1,12 @@
import { cn } from '@/lib/utils';
type IconFontType = {
name: string;
className?: string;
};
export const IconFont = ({ name, className }: IconFontType) => (
<svg className={cn('fill-current size-4', className)}>
<use xlinkHref={`#icon-${name}`} />
</svg>
);