A flexible button component with 4 variants (primary, outline, ghost, danger), 3 sizes (sm, md, lg), loading states, and icon support.
npm install @thomarket/buttonimport { Button } from '@thomarket/button';
function App() {
return (
<Button variant="primary" size="md">
Click me
</Button>
);
}
// With icons
<Button leftIcon={<PlusIcon />}>
Add Item
</Button>
// Loading state
<Button loading>
Submitting...
</Button>