Skip to content

[Feature]: Icon function #2159

@elnelson575

Description

@elnelson575

Category

UI Components

Scope

Major Feature

Problem

Claude keeps hallucinating a ui.icon() function mimicking shiny's. Right now we import icons from faicons and it feels a bit clunky to have to import a separate package to use icons.
We should consider making ui.icon() a reality.

Solution

Expect it would look something like:

ui.input_action_button("id", "my label", *, icon=ui.icon("star"))

We should make sure the icons lack default margins, so the alignment is handled by the surrounding component.

Alternatives (Optional)

No response

Example (Optional)

Impact (Optional)

No response

Contribution? (Optional)

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions