Skip to content

feat: export button class resolver - #145

Merged
Brayan-724 merged 1 commit into
devfrom
feat/button-class-resolver
Sep 20, 2026
Merged

Brayan-724 merged 1 commit into
devfrom
feat/button-class-resolver

Conversation

@Brayan-724

Copy link
Copy Markdown
Member

This will be helpful for implement other html elements as other ones (like a button in this PR).

Example:

You can have an a as a button

<a class=button_class(Variant::Primary, None) href="wherever"> my link </a>

Using this makes it more accessible and flexible, this may be extended to other components as well.

cc: @MarioYellowy @Phosphorus-M

@Brayan-724 Brayan-724 added enhancement New feature or request Leptos Related to Leptos labels Sep 20, 2026
@Brayan-724 Brayan-724 self-assigned this Sep 20, 2026
@Brayan-724
Brayan-724 force-pushed the feat/button-class-resolver branch from 102be15 to c80589a Compare September 20, 2026 03:02
@Brayan-724
Brayan-724 force-pushed the feat/button-class-resolver branch from c80589a to 79022d7 Compare September 20, 2026 03:03
@Brayan-724

Copy link
Copy Markdown
Member Author

gif

@Brayan-724
Brayan-724 merged commit 73d2708 into dev Sep 20, 2026
3 checks passed
@Brayan-724
Brayan-724 deleted the feat/button-class-resolver branch September 20, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Leptos Related to Leptos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants