Closed pawelmalak closed 3 years ago
Hi, is it possible to import needed icons dynamically using icon slug?
I have this component:
interface Props { title: string; icon: string; } export const BadgeWithIcon = (props: Props): JSX.Element => { return ( <span className='badge bg-primary'> {/* ICON */} {props.title} </span> ); }
and I want to insert icon dynamically like that:
<BadgeWithIcon title="ReactJS" icon="reactjs" />
@sachinraja is supporting us with a PR to achieve this, @sachinraja is there an update or something we can help with?
Hi. Any updates on this PR?
Hi, is it possible to import needed icons dynamically using icon slug?
I have this component:
and I want to insert icon dynamically like that: