All Projects → lucide-icons → Lucide

lucide-icons / Lucide

Licence: isc
Simply beautiful open source icons, community-sourced

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Lucide

Flying Focus
UI concept
Stars: ✭ 428 (+307.62%)
Mutual labels:  ui-design, ui-components
Base
React-UI-Kit - frontend library with ReactJS components
Stars: ✭ 18 (-82.86%)
Mutual labels:  ui-design, ui-components
Shineout
高性能React组件库
Stars: ✭ 577 (+449.52%)
Mutual labels:  ui-design, ui-components
Rabbitui
Rabbit UI 是基于 Typescript 编写的UI组件库
Stars: ✭ 307 (+192.38%)
Mutual labels:  ui-design, ui-components
Swifthuecolorpicker
iOS HUE color picker
Stars: ✭ 44 (-58.1%)
Mutual labels:  ui-design, ui-components
Radialmenu
A highly customizable radial menu that's very easy to setup.
Stars: ✭ 371 (+253.33%)
Mutual labels:  ui-components, icons
Datingapp
Dating UI kit is used for online meet up with girls and boys . The screen contains more than 30 icons and most of all required elements required to design an application like this. The XML and JAVA files contains comments at each and every point for easy understanding. Everything was made with a detail oriented style and followed by today's web trends. Clean coded & Layers are well-organized, carefully named, and grouped.
Stars: ✭ 97 (-7.62%)
Mutual labels:  ui-design, ui-components
CheckMarkView
UI view which draws programmatically a checkmark with different styles
Stars: ✭ 35 (-66.67%)
Mutual labels:  ui-design, ui-components
Components
Example Components (Built with Tonic)
Stars: ✭ 42 (-60%)
Mutual labels:  ui-design, ui-components
Vuetify
🐉 Material Component Framework for Vue
Stars: ✭ 33,085 (+31409.52%)
Mutual labels:  ui-design, ui-components
Kpc
A UI Components Library for Intact, Vue, React and Angular.
Stars: ✭ 266 (+153.33%)
Mutual labels:  ui-design, ui-components
Pure Css3 Animated Border
Pure CSS3 animated border for all html element.
Stars: ✭ 63 (-40%)
Mutual labels:  ui-design, ui-components
nice-alert.js
Makes alert box suck less
Stars: ✭ 38 (-63.81%)
Mutual labels:  ui-design, ui-components
Daisyui
⭐️ ⭐️ ⭐️ ⭐️ ⭐️  Tailwind Components
Stars: ✭ 382 (+263.81%)
Mutual labels:  ui-design, ui-components
monalisa-ui
MonalisaUI ✨ React Native UI Library
Stars: ✭ 37 (-64.76%)
Mutual labels:  ui-design, ui-components
Ui Libraries
A collection of UI Frameworks and their platform implementations.
Stars: ✭ 769 (+632.38%)
Mutual labels:  ui-design, ui-components
Bulma.io-axure
AxureRP Library with Bulma.io components
Stars: ✭ 90 (-14.29%)
Mutual labels:  ui-design, ui-components
dashkit-ui
UI Components built on React.
Stars: ✭ 17 (-83.81%)
Mutual labels:  ui-design, ui-components
Tinderclone
Android UI clone of the official Tinder ❤ app
Stars: ✭ 24 (-77.14%)
Mutual labels:  ui-design, ui-components
Bottomsheetpickers
Third-party date and time pickers for Android.
Stars: ✭ 1,099 (+946.67%)
Mutual labels:  ui-design, ui-components

Lucide Logo

Lucide

NPM npm Discord

What is Lucide?

Lucide is a community-run fork of Feather Icons, open for anyone to contribute icons.

Table of Contents

Installation

Package Managers

npm install lucide
#or
yarn add lucide

CDN

<!-- Development version -->
<script src="https://unpkg.com/[email protected]/dist/umd/lucide.js"></script>

<!-- Production version -->
<script src="https://unpkg.com/[email protected]"></script>

Usage

At its core, Lucide is a collection of SVG files. This means that you can use Feather icons in all the same ways you can use SVGs (e.g. img, background-image, inline, object, embed, iframe). Here's a helpful article detailing the many ways SVGs can be used on the web: SVG on the Web – Implementation Options

The following are additional ways you can use Lucide. With the Javascript library you can easily incorporate the icon you want in your webpage.

With unpkg

Here is a complete example with unpkg

<!DOCTYPE html>
<body>
  <i icon-name="volume-2" class="my-class"></i>
  <i icon-name="x"></i>
  <i icon-name="menu"></i>

  <script src="https://unpkg.com/[email protected]"></script>
  <script>
    lucide.createIcons();
  </script>
</body>

With ESModules

To reduce bundle size, lucide is built to be fully treeshakable. The createIcons function will search for HTMLElements with the attribute icon-name and replace it with the svg from the given icon name.

<!-- Your HTML file -->
<i icon-name="menu"></i>
import { createIcons, icons } from 'lucide';

// Caution, this will import all the icons and bundle them.
createIcons({icons});

// Recommended way, to include only the icons you need.
import { createIcons, Menu, ArrowRight, Globe } from 'lucide';

createIcons({
  icons: {
    Menu,
    ArrowRight,
    Globe,
  },
});

Additional Options

In the createIcons function you can pass some extra parameters to adjust the nameAttr or add custom attributes like for example classes.

Here is a full example:

import { createIcons } from 'lucide';

createIcons({
  attrs: {
    class: ['my-custom-class', 'icon'],
    'stroke-width': 1,
    stroke: '#333',
  },
  nameAttr: 'icon-name', // attribute for the icon name.
});

Treeshake the library, only use the icons you use

import { createIcons, Menu, ArrowRight, Globe } from 'lucide';

createIcons({
  icons: {
    Menu,
    ArrowRight,
    Globe,
  },
});

Custom Element binding

import { createElement, Menu } from 'lucide';

const menuIcon = createElement(Menu); // Returns HTMLElement (svg)

// set custom attributes with browser native functions
menuIcon.setAttribute('stroke', '#333');
menuIcon.classList.add('my-icon-class');

// Append HTMLElement in webpage
const myApp = document.getElementById('app');
myApp.appendChild(menuIcon);

With React

You can also use the Lucide library using the react package.

yarn add lucide-react

# or

npm install lucide-react

For more details, see the documentation.

With Vue

You can also use the Lucide library using the Vue package.

yarn add lucide-vue

# or

npm install lucide-vue

For more details, see the documentation.

Figma

You can use the components from this Figma file.

Contributing

For more info on how to contribute please see the contribution guidelines.

Caught a mistake or want to contribute to the documentation? Edit this page on Github

Community

Join the community on our Discord server!

License

Lucide is licensed under the ISC License.

Powered by Vercel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].