This project aims to recreate the VSCode MaterialDesignIcons Intellisense by @lukas-tr for Heroicons. I personally use the aforementioned library when I'm working with Material Design Icons in my projects. I recently started using Heroicons, and couldn't find a similar extension in existence. VSCode Heroicons Preview is not as feature-rich as MDI Intellisense, however there are more planned in the future!
The library will attempt to detect your node_modules
folder and parse the data from the icons on an ad-hoc basis, then cache that data to lower the amount of disk reads during that session. This allows the extension to be independent of Heroicons updates, and prevent potential confusion.
For instance, lets say Heroicons v1.2 adds a "CuteCatIcon". If you open up a project with a Heroicons version below 1.2, that icon will not be rendered, but if you open up a 1.2 version it will be rendered as it is detected. Why would it render an icon that isn't in the version you're using?
- Inline Icon Previews
- Configure which files should render icons
- Solid/Outline detection, with default fallback
- For instance, if you have
import { ChevronUpIcon } from '@heroicons/react/solid'
it will render the Solid variant, else it will render whatever the fallback style is. (Default: Outline)
- For instance, if you have
- React and Vue library support
- Configuration options for per-project
node_modules
location in the event HIP cannot detect thenode_modules
directory location - Configure Icon color
- Configure Icon size
hip.iconColor
: Color to render your Icons. Accepts anything that a "fill" attribute would accept in HTML.hip.iconSize
: Size of the inline icon. Default is 1em.hip.nodeModulesPath
: Specify a per-workspace node_modules path, relative to the top level directory. ex:/project/frontend/node_modules
hip.fileDecorationExtensions
: Array of file extensions to search for Icons to decorate. Example:[".tsx", ".jsx"]
hip.iconStyleFallback
: If HIP cannot detect a style from an import, it will fall back to this style. (Options aresolid
andoutline
)