pages235/src/react/PixelartIcon.tsx
2024-02-19 15:46:02 +03:00

7 lines
382 B
TypeScript

import { CSSProperties } from 'react'
// names: https://pixelarticons.com/free/
export default ({ iconName, width = undefined as undefined | number, styles = {} as CSSProperties, className = undefined }) => {
if (width !== undefined) styles = { width, height: width, ...styles }
return <iconify-icon icon={`pixelarticons:${iconName}`} style={styles} className={className} />
}