Icons and spots of stackoverflow design system optimized for ReactJs user.
ReactJs implementation of Stack-Icons.
Look up available Icon
here and Spot
here
yarn add reactjs-stack-icons
import { Icon } from 'reactjs-stack-icons';
...
<Icon
name='AlertCircle'
height={24}
width={24}
/>
...
// For NextJs
const Icon = dynamic(async () => ((await import('reactjs-stack-icons')).Icon), {
ssr: false,
});
const Spot = dynamic(async () => ((await import('reactjs-stack-icons')).Spot), {
ssr: false,
});
...
<Icon
name='AlertCircle'
height={24}
width={24}
/>
<Spot
height={24}
width={24}
name='Astronaut'
/>
...