Skip to content

Commit 4508a8a

Browse files
committed
docs: Use TextInput in more places
1 parent 65b5b37 commit 4508a8a

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

docs/core/getting-started/mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function CreateTodo({ userId }: { userId: number }) {
9898
<div className="listItem nogap">
9999
<label>
100100
<input type="checkbox" name="new" checked={false} disabled />
101-
<input type="text" onKeyDown={handleKeyDown} />
101+
<TextInput size="small" onKeyDown={handleKeyDown} />
102102
</label>
103103
<CancelButton />
104104
</div>

docs/rest/api/Collection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default function NewTodo({ userId }: { userId?: string }) {
122122

123123
return (
124124
<div>
125-
<input type="text" onKeyDown={handlePress} />
125+
<TextInput size="small" onKeyDown={handlePress} />
126126
<label>
127127
<input
128128
type="checkbox"
@@ -352,7 +352,7 @@ export default function PostListLayout({
352352
<input type="radio" value="clara" name="author" />
353353
Clara
354354
</label>
355-
<input type="text" defaultValue="New Post" name="title" />
355+
<TextInput defaultValue="New Post" name="title" label="Title" />
356356
<button type="submit">{loading ? 'loading...' : 'Push'}</button>
357357
</form>
358358
</div>

docs/rest/shared/_SortDemo.mdx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ export default function NewPost({ author }: Props) {
5757
}
5858
});
5959

60-
return (
61-
<div>
62-
<input type="text" onKeyDown={handlePress} />
63-
{loading ? ' ...' : ''}
64-
</div>
65-
);
60+
return <TextInput onKeyDown={handlePress} loading={loading} placeholder="Post title" />;
6661
}
6762
interface Props {
6863
author: string;

0 commit comments

Comments
 (0)