1d22adc42e
Backend (Express + MariaDB) y frontend (React + Vite, identidad Fluent/Windows) con el nucleo funcional: seguridad, organizacion, proyectos, actividades, subtareas, dependencias, dashboard, calendario, gantt, comentarios, adjuntos, notificaciones in-app y catalogos. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
10 lines
367 B
React
10 lines
367 B
React
export function Button({ variant = 'standard', size, icon: Icon, children, className = '', ...rest }) {
|
|
const sizeClass = size === 'sm' ? 'btn-sm' : '';
|
|
return (
|
|
<button className={`btn btn-${variant} ${sizeClass} ${className}`.trim()} {...rest}>
|
|
{Icon && <Icon />}
|
|
{children && <span className="btn-label">{children}</span>}
|
|
</button>
|
|
);
|
|
}
|