lucide_lustre

Package Version Hex Docs

gleam add --dev lucide_lustre@2
gleam run -m lucide_lustre/add library # Library can be replaced with any lucide icon

Or if you still want to install all icons

gleam run -m lucide_lustre/add_all
import lucide_lustre.{library}
import lustre/element/html.{div}
import lustre/attribute.{class}

pub fn main() {
  div([], [
    library([class("size-4")])
  ])
}

Further documentation can be found at https://hexdocs.pm/lucide_lustre.

Change output module

Configuration can be made in either the arguments

gleam run -m lucide_lustre/add [icon_name] {output_module}
gleam run -m lucide_lustre/add_all {output_module}

or statically in the gleam.toml

[lucide_lustre]
output_module = "lucide_lustre"
Search Document