Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanman committed Aug 31, 2023
1 parent bd3bdfc commit 20c67b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ In your prototype folder, run:
npm install accessible-autocomplete
```

Then on the page you want to add the accessible autocomplete:
To add the accessible autocomplete to a page in your prototype, first add a `select` component with your options. For example:

```html
<div class="govuk-form-group">
Expand All @@ -99,7 +99,7 @@ Then on the page you want to add the accessible autocomplete:
</div>
```

At the end of the file add a `pageScripts` block for the JavaScript:
At the end of the same page add a `pageScripts` block for the JavaScript. This turns the `select` into an autocomplete.

```js
<% block pageScripts %>
Expand Down

0 comments on commit 20c67b1

Please sign in to comment.