How to use the @elastic/react-search-ui-views/lib/view-helpers.getFilterValueDisplay function in @elastic/react-search-ui-views

To help you get started, we’ve selected a few @elastic/react-search-ui-views 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 mapbox / dr-ui / src / components / search / search-box.js View on Github external
value === siteFilter.value ? 'bg-gray color-white' : ''
              }`}
              onClick={e => {
                e.preventDefault();
                // track click
                if (window && window.analytics) {
                  analytics.track('Searched docs', {
                    query: this.props.searchTerm,
                    toggle: true,
                    site: this.props.site
                  });
                }
                onSelect(siteFilter.value);
              }}
            >
              {getFilterValueDisplay(siteFilter.value)}
            
          

          <div>
            <button> {
                e.preventDefault();
                onRemove(value);
              }}
              className={`toggle py3 ${!value ? 'bg-gray color-white' : ''}`}
            &gt;
              All docs
            </button>
          </div>
        

@elastic/react-search-ui-views

A collection of React UI components for building search experiences

Apache-2.0
Latest version published 4 months ago

Package Health Score

81 / 100
Full package analysis

Popular @elastic/react-search-ui-views functions

Similar packages