Skip to content

Commit

Permalink
docs: Use TextInput in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Sep 16, 2024
1 parent 65b5b37 commit 4508a8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/core/getting-started/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function CreateTodo({ userId }: { userId: number }) {
<div className="listItem nogap">
<label>
<input type="checkbox" name="new" checked={false} disabled />
<input type="text" onKeyDown={handleKeyDown} />
<TextInput size="small" onKeyDown={handleKeyDown} />
</label>
<CancelButton />
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/rest/api/Collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function NewTodo({ userId }: { userId?: string }) {

return (
<div>
<input type="text" onKeyDown={handlePress} />
<TextInput size="small" onKeyDown={handlePress} />
<label>
<input
type="checkbox"
Expand Down Expand Up @@ -352,7 +352,7 @@ export default function PostListLayout({
<input type="radio" value="clara" name="author" />
Clara
</label>
<input type="text" defaultValue="New Post" name="title" />
<TextInput defaultValue="New Post" name="title" label="Title" />
<button type="submit">{loading ? 'loading...' : 'Push'}</button>
</form>
</div>
Expand Down
7 changes: 1 addition & 6 deletions docs/rest/shared/_SortDemo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ export default function NewPost({ author }: Props) {
}
});

return (
<div>
<input type="text" onKeyDown={handlePress} />
{loading ? ' ...' : ''}
</div>
);
return <TextInput onKeyDown={handlePress} loading={loading} placeholder="Post title" />;
}
interface Props {
author: string;
Expand Down

0 comments on commit 4508a8a

Please sign in to comment.