Commit cbf7423 1 parent 4c5cc3c commit cbf7423 Copy full SHA for cbf7423
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import BogButton from '../BogButton/BogButton';
4
4
import type { FormEventHandler } from 'react' ;
5
5
6
6
export interface BogFormProps {
7
- onSubmit ? : FormEventHandler < HTMLFormElement > ;
7
+ onSubmit : FormEventHandler < HTMLFormElement > ;
8
8
submitLabel ?: string ;
9
9
style ?: React . CSSProperties ;
10
10
className ?: string ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import styles from './styles.module.css';
3
3
4
4
export interface BogTextInputProps {
5
5
multiline ?: boolean ;
6
- type ?: 'text' | 'email' | 'password' | 'tel' ;
6
+ type ?: 'text' | 'email' | 'password' | 'tel' | 'search' ;
7
7
name : string ;
8
8
label : string ;
9
9
placeholder ?: string ;
@@ -20,13 +20,13 @@ export function BogTextInput({
20
20
label,
21
21
multiline = false ,
22
22
placeholder,
23
- required = true ,
23
+ required = false ,
24
24
disabled = false ,
25
25
style,
26
26
className,
27
27
} : BogTextInputProps ) {
28
28
return (
29
- < Form . Field name = { name } >
29
+ < Form . Field name = { name } className = { className } style = { style } >
30
30
< div className = "flex flex-row gap-x-2 text-paragraph-2" >
31
31
< Form . Label > { label } </ Form . Label >
32
32
< Form . Message match = "valueMissing" className = "text-status-red-text" >
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export default function Home() {
217
217
} }
218
218
>
219
219
< BogTextInput name = "name" label = "Name" placeholder = "Enter your name" />
220
- < BogTextInput name = "email" label = "Email" placeholder = "Enter your email" />
220
+ < BogTextInput name = "email" label = "Email" placeholder = "Enter your email" type = "email" />
221
221
< BogTextInput
222
222
name = "password"
223
223
label = "Password"
You can’t perform that action at this time.
0 commit comments