IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
536B

  1. import { h, Component } from 'preact';
  2. class WBInlineSearch extends Component {
  3. render({ textSearch, navigate }) {
  4. return (
  5. <div class="form-inline my-2 my-lg-0">
  6. <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"
  7. value={ textSearch } onchange={ navigate ? (e => navigate(e.target.value)) : null } />
  8. <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  9. </div>
  10. );
  11. }
  12. }
  13. export default WBInlineSearch;