— No reviews yet
0 installs
5 views
0.0% view→install
Install
$ agentstack add skill-andrewsrigom-agent-skills-lucide-react-dynamic-icons-and-lucide-lab ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Lucide React Dynamic Icons And Lucide Lab? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
Lucide React Dynamic Icons And Lucide Lab
Use this skill when the app cannot rely only on static named imports from lucide-react.
Scope
DynamicIconand dynamic icon names- caveats of data-driven icon loading
@lucide/lab- the
Iconcomponent - custom
iconNodedata - choosing between direct imports, dynamic loading, and Lab/custom icons
Default path
- Read [references/dynamic-and-lab.md](./references/dynamic-and-lab.md).
- Ask whether the icon list is static or data-driven.
- If the icon set is static, route back to
lucide-react-overview-and-setupand use direct imports. - Use
DynamicIcononly when icon names truly come from runtime data such as CMS entries or database rows. - Use
Iconwith@lucide/labor custom icon nodes when the app needs icons outside the core Lucide package.
When to deviate
- Keep the core package only when all icons are in the main Lucide set.
- Use
Iconplus@lucide/labfor non-core or custom nodes rather than forcing everything throughDynamicIcon. - Validate or normalize icon names before render when they come from remote data.
- Move back to the overview skill when the icon set turns out to be static after all.
Guardrails
DynamicIconis not the default path; it increases build and delivery cost.- Expect SSR and loading-state considerations when icon names are resolved dynamically.
- Keep runtime icon names validated or normalized instead of trusting arbitrary strings.
- Use
Iconfor Lucide Lab or custom icon nodes, notDynamicIcon. - Treat
@lucide/labas an extension set, not the baseline icon dependency for every project.
Avoid
- using
DynamicIconfor a static set of known icons - trusting arbitrary runtime icon names without validation
- treating
@lucide/labas a required dependency for normal app usage - using
DynamicIconwhen the real need is a Lab or custom icon node
Verification checklist
- the icon set is confirmed to be static or runtime-driven
DynamicIconis only used for real runtime-name scenarios- Lab or custom nodes use
Icon, notDynamicIcon - remote icon names are validated or normalized
- SSR and loading behavior are considered when icons load dynamically
Quick examples
Lucide Lab:
import { Icon } from "lucide-react";
import { coconut } from "@lucide/lab";
export function LabExample() {
return ;
}
Dynamic icon by name:
import { DynamicIcon } from "lucide-react/dynamic";
export function CmsIcon({ name }: { name: string }) {
return ;
}
Current snapshot
- Checked against official docs on 2026-04-03
- Current npm line verified live on 2026-04-03:
@lucide/lab@0.1.2 - Official React docs still recommend direct imports for static use cases and reserve
DynamicIconfor runtime-name scenarios
References
- [Dynamic icons and Lucide Lab](./references/dynamic-and-lab.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: andrewsrigom
- Source: andrewsrigom/agent-skills
- License: MIT
- Homepage: https://andrewsrigom.github.io/agent-skills/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.