mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Radio Button and Checkbox Created
This commit is contained in:
@@ -23,16 +23,16 @@ export default function FileInput({
|
||||
|
||||
return (
|
||||
<div
|
||||
className="flex flex-row items-center justify-between w-full border-2 rounded-lg"
|
||||
className={clsx(
|
||||
"flex flex-row items-center justify-between w-full border-2 rounded-lg",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<input
|
||||
ref={inputRef}
|
||||
id={id}
|
||||
type="file"
|
||||
className={clsx(
|
||||
"sr-only",
|
||||
className
|
||||
)}
|
||||
className="sr-only"
|
||||
name={name}
|
||||
onChange={(e) => { setFile(e.target.files?.[0]); onChange?.(e.target.files?.[0]); }}
|
||||
disabled={disabled}
|
||||
@@ -76,6 +76,7 @@ export default function FileInput({
|
||||
className="text-nowrap rounded-r-lg"
|
||||
rounding="none"
|
||||
onClick={() => { inputRef.current?.click(); }}
|
||||
disabled={disabled}
|
||||
>
|
||||
Click Me
|
||||
</SecondaryButton>
|
||||
|
||||
Reference in New Issue
Block a user