Skip to content

Commit

Permalink
feat: create reusable action button component
Browse files Browse the repository at this point in the history
  • Loading branch information
binzek committed Nov 11, 2023
1 parent 5fb10e9 commit 395201c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Interface(reusable) components
import Input from "./interface/Input";
import ActionButton from "./interface/ActionButton";

export { Input };
export { Input, ActionButton };
13 changes: 13 additions & 0 deletions src/components/interface/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
interface Props {
text: string;
}

function ActionButton({ text }: Props) {
return (
<button className="btn btn-primary bg-primary border-none hover:bg-accent normal-case w-full">
{text} &rarr;
</button>
);
}

export default ActionButton;
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
colors: {
primary: "#D36C31",
secondary: "#F1B898",
accent: "#D97B45",
background: "#FEFEFE",
text: "#000000",
offtext: "#6E6E6E",
Expand Down

0 comments on commit 395201c

Please sign in to comment.