tinazone commited on
Commit
57d523a
·
verified ·
1 Parent(s): fba22b7

character limit

Browse files
Files changed (1) hide show
  1. components/GenerationForm.js +1 -0
components/GenerationForm.js CHANGED
@@ -57,6 +57,7 @@ export default function GenerationForm({
57
  type="text"
58
  value={word}
59
  onChange={(e) => setWord(e.target.value)}
 
60
  placeholder='Type a word like "float" ...'
61
  className="w-full p-3 sm:p-4 bg-transparent border-[1.5px] border-gray-200 rounded-[26px] text-black placeholder-gray-400 focus:outline-none focus:border-black text-xs sm:text-base"
62
  />
 
57
  type="text"
58
  value={word}
59
  onChange={(e) => setWord(e.target.value)}
60
+ maxLength={20}
61
  placeholder='Type a word like "float" ...'
62
  className="w-full p-3 sm:p-4 bg-transparent border-[1.5px] border-gray-200 rounded-[26px] text-black placeholder-gray-400 focus:outline-none focus:border-black text-xs sm:text-base"
63
  />