website-session-kit
Version:
A modular and extensible session management toolkit for modern websites.
19 lines (18 loc) • 942 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const FeaturedButton = ({ className = '', label, icon, href, wfull = false, padding = 'px-4 py-2', hideLabelOnMobile = false, bgColor = 'bg-[#e16a3d]', textColor = 'text-white', borderColor = '', // padrão: sem borda
}) => {
const buttonClasses = [
'inline-flex items-center justify-center rounded-lg transition-all duration-200',
padding,
bgColor,
textColor,
borderColor ? `border ${borderColor}` : '',
wfull ? 'w-full' : '',
'hover:opacity-80',
className,
]
.filter(Boolean)
.join(' ');
return (_jsxs("a", { href: href, className: buttonClasses, "aria-label": label, children: [icon && _jsx("span", { className: label ? 'mr-2' : '', children: icon }), _jsx("span", { className: hideLabelOnMobile ? 'hidden sm:inline' : '', children: label })] }));
};
export default FeaturedButton;