Skip to content

Commit

Permalink
change casing of button folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew-Daniels committed Aug 5, 2024
1 parent 6926491 commit bd92b18
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libs/ui/src/lib/Button/button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';

export function Button({
onClick,
children,
className,
...rest
}: React.ButtonHTMLAttributes<HTMLButtonElement>) {
return (
<button
onClick={onClick}
className={`bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded ${className}`}
{...rest}
>
{children}
</button>
);
}
1 change: 1 addition & 0 deletions libs/ui/src/lib/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Button } from './Button';

0 comments on commit bd92b18

Please sign in to comment.