lona-react
Version:
A lightweight and customizable React component library designed to simplify UI development with reusable and accessible components.
13 lines (12 loc) • 390 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
const Button = ({ label, onClick }) => {
return (_jsx("button", { onClick: onClick, style: {
background: '#222',
color: '#fff',
padding: '0.5rem 1rem',
border: 'none',
borderRadius: '4px',
cursor: 'pointer'
}, children: label }));
};
export default Button;