Skip to content

Commit

Permalink
add checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
OGreeni committed Dec 4, 2023
1 parent 0b6c66a commit dc97c14
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 23 deletions.
47 changes: 25 additions & 22 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.7",
"@types/node": "20.8.9",
"@types/react": "18.2.33",
"@types/react-dom": "18.2.14",
Expand Down
17 changes: 17 additions & 0 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions frontend/src/app/components/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
interface CheckboxProps {
checked: boolean;
handleChange: () => void;
}

export default function Checkbox(props: CheckboxProps) {
const { checked, handleChange } = props;

return (
<input
type="checkbox"
value=""
checked={checked}
onChange={handleChange}
className="bg-[#D9D9D9] border-0 focus:ring-secondary text-secondary"
/>
);
}
2 changes: 1 addition & 1 deletion frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ const config: Config = {
},
},
},
plugins: [],
plugins: [require("@tailwindcss/forms")],
};
export default config;

0 comments on commit dc97c14

Please sign in to comment.