Spaces:
Running
Running
character limit
Browse files
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 |
/>
|