This commit is contained in:
z.ai committed 2026-10-08 11:09:37 +08:00
1 parent c1541b80df
commit b4c7908029
97 files changed
+12403 -154

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import type { ButtonHTMLAttributes } from "react";
import {
buttonClassName,
type ButtonStyleOptions,
} from "./button-variants";
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &
ButtonStyleOptions;
/** 按钮组件:渲染原生 <button>,样式由 buttonVariants 统一管理 */
export function Button({
className,
variant,
size,
type = "button",
...props
}: ButtonProps) {
return (
<button
type={type}
className={buttonClassName({ className, variant, size })}
{...props}
/>
);
}