Prepare Icon Component Files
install-iconsFetches the named icons from the public Iconify API and returns one React component file per icon, plus an index.ts barrel, as text for the caller to save. It writes no files. Takes a libraryId and icon names from find-icons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | Icon names to install. May be bare (e.g. 'home') or prefixed (e.g. 'tabler:home'). | |
| format | No | Output format. 'tsx' (default) generates React components; 'svg' generates raw .svg files. | |
| variant | No | Optional library variant (e.g. 'outline', 'filled'). | |
| libraryId | Yes | Icon library ID from find-icon-library (e.g. 'tabler', 'phosphor'). | |
| targetDir | No | Directory inside the project to write into. Defaults to 'components/icons'. |