docs: improve styling for form submission example (#2899)
  ## Changes - Added border and padding to the search input field for better visibility - Added light gray background and border to the search button for better clickability ## Why - The original styling makes it difficult to recognize the search input field and button, as they appear as plain text elements without any visual distinction.
This commit is contained in:
@@ -53,8 +53,10 @@ export default function Page({ data }: PageProps<Data>) {
|
||||
return (
|
||||
<div>
|
||||
<form>
|
||||
<input type="text" name="q" value={query} />
|
||||
<button type="submit">Search</button>
|
||||
<input type="text" name="q" value={query} class="border p-1" />
|
||||
<button type="submit" class="ml-1 px-2 py-1 bg-gray-100 border">
|
||||
Search
|
||||
</button>
|
||||
</form>
|
||||
<ul>
|
||||
{results.map((name) => <li key={name}>{name}</li>)}
|
||||
|
||||
Reference in New Issue
Block a user