Skip to content

Commit 2b8d6f6

Browse files
authored
fix: add placeholder to starter app Textfield types (#9069)
* fix: add placeholder to starter app Textfield types * whoops typo
1 parent aefa248 commit 2b8d6f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

starters/docs/src/TextField.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ export interface TextFieldProps extends AriaTextFieldProps {
1212
label?: string;
1313
description?: string;
1414
errorMessage?: string | ((validation: ValidationResult) => string);
15+
placeholder?: string
1516
}
1617

1718
export function TextField(
18-
{ label, description, errorMessage, ...props }: TextFieldProps
19+
{ label, description, errorMessage, placeholder, ...props }: TextFieldProps
1920
) {
2021
return (
2122
<AriaTextField {...props}>
2223
<Label>{label}</Label>
23-
<Input className="react-aria-Input inset" />
24+
<Input className="react-aria-Input inset" placeholder={placeholder} />
2425
{description && <Description>{description}</Description>}
2526
<FieldError>{errorMessage}</FieldError>
2627
</AriaTextField>

0 commit comments

Comments
 (0)