@surstromming/icon
Renders any lucide icon as an inline SVG.
726
| Install | |
|---|---|
npm install @surstromming/icon |
|
| Latest Version: | 0.1.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 17, 2026 |
| Links: | GitHub · npm |
Maintainer: evgeniy_mnatsakanov
@surstromming/icon
Renders any lucide icon as an inline SVG.
Dependency graph
graph LR
icon["@surstromming/icon"]
Usage
Import icons from the lucide package and pass them to Icon:
<template>
<Icon :icon="Search" :size="16" />
<Icon :icon="Command" :size="20" :stroke-width="2.5" />
</template>
<script setup lang="ts">
import { Search, Command } from 'lucide'
import { Icon } from '@surstromming/icon'
</script>
Icon inherits colour via currentColor; size defaults to 1em (scales with
the surrounding text). Pass a number for pixels, or size the <svg> from the
parent's CSS (e.g. .btn svg { width: 1rem; height: 1rem; }) for a fixed size.
See packages/CONVENTIONS.md for authoring rules.
Related Packages
@surstromming/dialog
Modal dialog, with an alert-dialog mode and sheets on the screen's edges.
1,382
0
@surstromming/design
Everything related to design system, including colors, typography, and spacing.
1,363
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.0 | ^3.4.0 | MIT |