| Title: | 'Lucide' Icons for 'R' |
|---|---|
| Description: | A lightweight wrapper for the 'Lucide' icon library <https://lucide.dev>. Embed beautiful and consistent 'SVG' icons inline in any 'R' web application. |
| Authors: | Arthur Bréant [aut, cre] |
| Maintainer: | Arthur Bréant <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-05-10 07:47:00 UTC |
| Source: | https://github.com/hyperverse-r/lucidr |
Renders a 'Lucide' icon as an inline 'SVG' element.
lucide( name, size = 24, color = "currentColor", stroke_width = 2, class = NULL, ... )lucide( name, size = 24, color = "currentColor", stroke_width = 2, class = NULL, ... )
name |
Icon name (e.g. |
size |
Icon size in pixels. Applied to both |
color |
Icon colour. Any valid CSS colour value. Default
|
stroke_width |
Stroke width. Default |
class |
Additional CSS classes to add to the |
... |
Additional HTML attributes passed to the |
An htmltools::tags object (inline <svg>).
lucide("house") lucide("chevron-right", size = 16, color = "red") lucide("settings", stroke_width = 1.5, class = "my-icon")lucide("house") lucide("chevron-right", size = 16, color = "red") lucide("settings", stroke_width = 1.5, class = "my-icon")
Returns the names of all icons bundled in this version of 'lucidr'.
lucide_list()lucide_list()
A character vector of icon names.
head(lucide_list(), 10) length(lucide_list())head(lucide_list(), 10) length(lucide_list())