Home

Awesome

Lucide-Omi

Implementation of the lucide icon library for Omi

Installation

npm install lucide-omi

Usage

import { render, define, Component } from 'omi'
import { Menu } from 'lucide-omi'

define('my-app', class extends Component {
  render() {
    return (
      <div>
        <Menu color="red" strokeWidth={3} size={36} />
      </div>
    )
  }
})

render(<my-app />, 'body')

Props

PropTypeDefaultDescription
colorstringcurrentColorColor of the icon
sizenumber24Size of the icon
strokeWidthnumber2Stroke width of the icon
absoluteStrokeWidthbooleanfalseIf true, stroke width will be the same regardless of icon size.