Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): add
aa-ItemWrapper
CSS class
This CSS class allows to keep the same design with an item wrapper for users who don't have access to `Fragment` (e.g., when using `dangerouslySetInnerHTML`). Example: ```js autocomplete({ // ... getSources() { return [ { // ... templates: { item({ item, createElement }) { return createElement('div', { className: 'aa-ItemWrapper', dangerouslySetInnerHTML: { __html: ` <div class="aa-ItemIcon"> <img src="${item.image}" alt="${item.name}" > </div> <div class="aa-ItemContent"> <div class="aa-ItemContentTitle"> ${item.name} </div> </div> `, }, }); }, }, }, ]; }, }); ```
- Loading branch information