i-like-robots / react-tag-autocomplete

⚛️ A simple, accessible, tagging component ready to drop into your React projects (new repo)
https://i-like-robots.github.io/react-tag-autocomplete/
ISC License
178 stars 12 forks source link

[Feature] Add listbox render prop #53

Closed i-like-robots closed 1 year ago

i-like-robots commented 1 year ago

This adds a new renderListBox prop to enable a custom list box component to be provided.

function CustomListBox({ children, classNames, ...listBoxProps }) {
  return (
    <div className={classNames.listBox} {...listBoxProps}>
      {children}
    </div>
  )
}

Resolves #52

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5931414425


Totals Coverage Status
Change from base Build 5910162086: -0.003%
Covered Lines: 1442
Relevant Lines: 1447

💛 - Coveralls
phiter commented 1 year ago

Great change! Thanks for that.