libreria-astro-lefebvre
Version:
Librería de componentes Astro, React y Vue para Lefebvre
9 lines (7 loc) • 373 B
JSX
import React from 'react';
const ReactButton = ({ label, onClick, type = 'button', disabled = false }) => (
<button className="bg-yellow-400 text-black p-2 rounded-lg font-bold m-4 cursor-pointer transition-colors duration-300 hover:bg-orange-600" type={type} onClick={onClick} disabled={disabled}>
{label}
</button>
);
export default ReactButton;