Skip to content

Commit

Permalink
feat: add icon prop to Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed May 9, 2024
1 parent 8a0e2a0 commit 56a0280
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-lies-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@badrap/libapp": patch
---

Add icon prop to Buttons
1 change: 1 addition & 0 deletions src/ui/experimental/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Json, UiNode, element } from "../internal.js";
type ButtonProps = {
variant?: "default" | "primary" | "danger";
size?: "sm" | "md";
icon?: `mdi:${string}`;
disabled?: boolean;
action?: Json;
submit?: boolean;
Expand Down

0 comments on commit 56a0280

Please sign in to comment.