
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
iconify-picker
Advanced tools
<iconify-picker>
Zero-dependency icon picker with built-in UI modes and native events
A modern, zero-dependency icon picker built as a custom element. Drop in anywhere — no framework required. Toggleable display modes (inline, button, manual), custom events, and fully themeable with CSS vars.
Autonomous Mode Web Component for selecting icons from any Iconify collection.
Via CDN:
<script type="module" src="https://cdn.example.com/iconify-picker.js"></script>
Or npm:
npm install iconify-picker
<iconify-picker collection="mdi" />
<iconify-picker
mode="button"
button-label="Choose Icon"
collection="mdi"
theme="dark"
filter="*:*:*"
/>
<iconify-picker
id="picker"
mode="manual"
hidden
collection="mdi"
/>
<script>
picker.show(); // Open picker manually
</script>
Attribute | Description |
---|---|
collection | Iconify collection ID (e.g. mdi , lucide ) |
mode | inline (default), button , manual |
button-label | Label for button (in button mode) |
theme | Optional: light , dark , or custom |
filter | Initial filter query |
Event | Detail Payload |
---|---|
icon-selected | { name, collection, category } |
picker.addEventListener('icon-selected', (e) => {
console.log(e.detail.name);
});
Method | Description |
---|---|
.show() | Show picker |
.hide() | Hide picker |
.toggle() | Toggle visibility |
.reset() | Clear filter/selection |
.focus() | Focus search input |
Customize with CSS custom properties:
<iconify-picker
collection="mdi"
style="
--picker-bg: #111;
--picker-color: #eee;
--picker-icon-size: 32px;
--picker-accent: hotpink;
--picker-radius: 8px;
"
/>
::part()
)iconify-picker::part(button) {
padding: 0.5rem 1rem;
background: var(--picker-accent);
}
This component follows the Autonomous Mode pattern:
<iconify-picker mode="button">
)inline
, button
, manual
)::part()
MIT
FAQs
Zero-dependency icon picker with built-in UI modes and native events
The npm package iconify-picker receives a total of 0 weekly downloads. As such, iconify-picker popularity was classified as not popular.
We found that iconify-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.