How to use @elastic/search-ui - 2 common examples

To help you get started, we’ve selected a few @elastic/search-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / search-ui / packages / react-search-ui / src / SearchProvider.js View on Github external
componentDidMount() {
    const { config } = this.props;
    // This initialization is done inside of componentDidMount, because initializing the SearchDriver server side
    // will error out, since the driver depends on window. Placing the initialization inside of componentDidMount
    // assures that it won't attempt to initialize server side.
    const driver = new SearchDriver({
      ...config,
      a11yNotificationMessages: {
        ...defaultA11yMessages,
        ...config.a11yNotificationMessages
      }
    });
    this.setState({
      driver
    });
  }
github elastic / search-ui / packages / react-search-ui / src / react-search-ui.js View on Github external
export default function reactSearchUi() {
  reactSearchComponents();
  searchUi();
}

@elastic/search-ui

A Headless Search UI library

Apache-2.0
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis

Popular @elastic/search-ui functions

Similar packages