Skip to content

Commit

Permalink
docs(readme) better slots docs
Browse files Browse the repository at this point in the history
* header/footer are gone. add more slots docs
  • Loading branch information
darrenjennings authored Jun 4, 2019
1 parent 497b324 commit f9c972b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,17 @@ For more advanced usage, check out the examples below, and explore the
## [Slots](#slots)

### header/footer
Slots for injecting content above all the results inside the results container.
Slots for injecting content around the results/input. Useful for header/footer like slots or empty state.

```html
<vue-autosuggest ...>
<template slot="header">
<h1>header content goes here</h1>
</template>
<template slot="footer">
<h1>footer content goes here</h1>
</template>
<template slot="before-input"> content before the <input /> goes here </template>
<template slot="after-input"> content after the <input /> goes here </template>
<template slot="before-suggestions"> content before the <ul> goes here </template>
<template slot="before-section-<section.name e.g. 'default'>"> section header content for specific section goes here </template>
<template slot="after-section-<section.name e.g. 'default'>"> footer content goes here for specific section. </template>
<template slot="after-section"> Default footer content for all sections </template>
<template slot="after-suggestions"> content after the <ul> goes here </template>
</vue-autosuggest>
```

Expand Down

0 comments on commit f9c972b

Please sign in to comment.