@gabattal/plugin-icon-js
v1.0.1
Published
Iconify icon component for Luna Park
Downloads
269
Maintainers
Readme
Luna Park Iconify Icons Plugin
A Luna Park plugin that exposes an Icon component powered by Iconify, compatible with icon names from https://icones.js.org.
Component
Icon
Available builder properties:
icon: Iconify icon name, for examplelucide:trash-2,mdi:home, ortabler:settings.spin: enables continuous rotation, useful for loading icons.label: optional accessibility label. Leave it empty for decorative icons.
Color, opacity, and size are handled by Luna Park's standard style controls. The component uses 1em, so it follows the text size applied by the builder.
Icons are loaded through @iconify/vue. You can copy icon names directly from icones.js.org into the icon property.
Installation
pnpm installBuild
pnpm buildLuna Park Preview
pnpm previewDirect icon search from the builder property field is not implemented in this plugin. The current Luna Park plugin API exposes simple LogicType schemas, but not a custom asynchronous icon picker for editor properties.
