-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update new styles for existing components
- Loading branch information
1 parent
4ed5fb0
commit 81bafc6
Showing
9 changed files
with
114 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { InputHTMLAttributes, forwardRef } from "react"; | ||
|
||
interface InputProps extends InputHTMLAttributes<Partial<HTMLInputElement>> { | ||
id?: string; | ||
type?: string; | ||
disabled?: boolean; | ||
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void; | ||
} | ||
|
||
const Input = forwardRef<HTMLInputElement, InputProps>((props, ref) => { | ||
return ( | ||
<> | ||
<input | ||
{...props} | ||
ref={ref} | ||
className="rounded-md w-full h-[45px] py-2 px-3 text-white text-xs leading-tight bg-tinkerGrey border-transparent focus:outline-none focus:ring-0 focus:border-tinkerYellow" | ||
/> | ||
</> | ||
); | ||
}); | ||
|
||
export default Input; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.