Skip to content

Commit c7e8892

Browse files
committed
Document [param]
1 parent f87ec9d commit c7e8892

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ import '@github/remote-input-element'
2222
<ul id="results"></ul>
2323
```
2424

25+
A GET request will be sent to `/query?q=${input.value}`.
26+
27+
The parameter name (`q`) is customizable with the `[param]` attribute:
28+
2529
```html
2630
<!-- Live preview of Markdown -->
27-
<remote-input src="/preview" aria-owns="md-preview">
31+
<remote-input src="/preview" aria-owns="md-preview" param="body">
2832
<textarea></textarea>
2933
</remote-input>
3034
<div id="md-preview"></div>

0 commit comments

Comments
 (0)