Skip to content

Commit

Permalink
feat: Create <Button> component
Browse files Browse the repository at this point in the history
  • Loading branch information
eryc-cc committed Jul 21, 2022
1 parent f9e58ef commit 9f3c77a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/atoms/Button/button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import { Button as SupabaseButtonComponent } from "@supabase/ui";

interface ButtonProps extends React.ComponentProps<typeof SupabaseButtonComponent> {
//Add additional prop definitions here
}

const Button: React.FC<ButtonProps> = ( props ) => {

return (
<SupabaseButtonComponent
className={
`${props.className && props.className} !text-sm !font-semibold !tracking-tight !py-1 !px-3 !rounded-md !px- focus:!border-orange-500 focus:outline-none focus-visible:ring focus-visible:!ring-orange-200 `
}
{...props}>
{props.children}
</SupabaseButtonComponent>
);
};

export default Button;

0 comments on commit 9f3c77a

Please sign in to comment.