From 35dec0649db8f46bffd7121af9cd301668e69e8c Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 23 Oct 2025 06:33:52 -0500 Subject: wip: desktop work --- packages/ui/src/components/button.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'packages/ui/src/components/button.tsx') diff --git a/packages/ui/src/components/button.tsx b/packages/ui/src/components/button.tsx index cae658439..d28e25afe 100644 --- a/packages/ui/src/components/button.tsx +++ b/packages/ui/src/components/button.tsx @@ -1,26 +1,32 @@ import { Button as Kobalte } from "@kobalte/core/button" -import { type ComponentProps, splitProps } from "solid-js" +import { type ComponentProps, Show, splitProps } from "solid-js" +import { Icon, IconProps } from "./icon" export interface ButtonProps extends ComponentProps, Pick, "class" | "classList" | "children"> { size?: "normal" | "large" variant?: "primary" | "secondary" | "ghost" + icon?: IconProps["name"] } export function Button(props: ButtonProps) { - const [split, rest] = splitProps(props, ["variant", "size", "class", "classList"]) + const [split, rest] = splitProps(props, ["variant", "size", "icon", "class", "classList"]) return ( + + + {props.children} ) -- cgit v1.2.3