@unowallet/token-price-widget
Version:
Uno Wallet Token Price Widget for displaying token price information and linking to uno wallet for swapping
5 lines (4 loc) • 458 B
JavaScript
import { jsxs as _jsxs } from "react/jsx-runtime";
export const Button = ({ icon, className, children, onClick, disabled, ...props }) => {
return (_jsxs("button", { onClick: onClick, className: `bg-slate-950 hover:bg-slate-800 active:bg-slate-900 flex items-center justify-center gap-2 text-white px-6 py-3 rounded-[12px] outline-none shadow ${className} ${disabled ? "opacity-50 pointer-events-none" : ""}`, ...props, children: [icon, children] }));
};