#[non_exhaustive]pub enum IconName {
Show 26 variants
Activity,
AlertCircle,
BarChart,
Bell,
Check,
ChevronDown,
ChevronLeft,
ChevronRight,
ChevronUp,
Command,
Download,
FileText,
Folder,
GitBranch,
GitCommit,
Info,
LayoutDashboard,
Menu,
MoreHorizontal,
Plus,
RefreshCw,
Search,
Settings,
Upload,
Users,
X,
}Expand description
Built-in icon names. The string forms intentionally mirror common lucide/shadcn names so agents can reach for familiar labels.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Activity
A pulse/activity waveform.
AlertCircle
An exclamation mark in a circle; also rendered as the fallback for unknown string icon names.
BarChart
Vertical bar-chart columns.
Bell
A notification bell.
Check
A checkmark; the stock checkbox’s checked indicator.
ChevronDown
A downward chevron; the stock select’s dropdown indicator.
ChevronLeft
A leftward chevron; the stock calendar’s previous-month button.
ChevronRight
A rightward chevron; the stock accordion’s expand indicator and the calendar’s next-month button.
ChevronUp
An upward chevron.
Command
The command (⌘) key symbol.
Download
A download arrow.
FileText
A text-document outline.
Folder
A folder outline.
GitBranch
A git branch fork.
GitCommit
A git commit dot on a line.
Info
An information “i” in a circle.
LayoutDashboard
A dashboard grid of panels.
Menu
Three stacked lines (hamburger menu).
MoreHorizontal
A horizontal ellipsis for overflow/“more” actions.
Plus
A plus sign; the stock editor-tabs add-tab button.
RefreshCw
Clockwise refresh arrows.
Search
A magnifying glass.
Settings
A gear.
Upload
An upload arrow.
Users
A group of people silhouettes.
X
An “x” cross; the stock close button (e.g. editor-tab close).
Implementations§
Source§impl IconName
impl IconName
Sourcepub fn parse(name: &str) -> Option<Self>
pub fn parse(name: &str) -> Option<Self>
Resolve a lucide/shadcn-style string name (e.g. "chevron-down",
with a few aliases like "close" for X) to its variant, or
None if the name is not in the built-in vocabulary.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The canonical lucide-style string name (the inverse of IconName::parse,
modulo aliases).
Sourcepub fn fallback_glyph(self) -> &'static str
pub fn fallback_glyph(self) -> &'static str
A single-character text stand-in for the icon, used where the vector glyph cannot be drawn (e.g. text-only rendering paths).
Trait Implementations§
impl Copy for IconName
impl Eq for IconName
Source§impl From<IconName> for IconSource
impl From<IconName> for IconSource
Source§impl IntoIconSource for IconName
impl IntoIconSource for IconName
Source§fn into_icon_source(self) -> IconSource
fn into_icon_source(self) -> IconSource
self into an IconSource.Source§impl Ord for IconName
impl Ord for IconName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for IconName
impl PartialOrd for IconName
impl StructuralPartialEq for IconName
Auto Trait Implementations§
impl Freeze for IconName
impl RefUnwindSafe for IconName
impl Send for IconName
impl Sync for IconName
impl Unpin for IconName
impl UnsafeUnpin for IconName
impl UnwindSafe for IconName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.