Initial commit: NestJS NextJS pnpm monorepo
This commit is contained in:
commit
610dcf202b
175 files changed
+25172
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { useEffect, useState } from "react"
|
||||
import { forwardRef } from "react"
|
||||
interface ChangeValue {
|
||||
[key: string]: boolean
|
||||
}
|
||||
|
||||
interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
label?: string
|
||||
error?: string | undefined
|
||||
|
||||
}
|
||||
|
||||
export const InputCheckboxR = forwardRef<HTMLInputElement, Props>(
|
||||
({ label, error, ...props }, ref) => {
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="p-2 mb-1 mt-1 bg-green-0 flex items-center">
|
||||
|
||||
<input ref={ref} type="checkbox" className=" me-2 w-6 h-6 " {...props} />
|
||||
{label && <div className="text-md font-normal text-gray-00 font-mono ps-1">{label}</div>}
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user