How to use the @react-md/form.isListboxOptionProps function in @react-md/form

To help you get started, we’ve selected a few @react-md/form 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 mlaursen / react-md / packages / autocomplete / src / AutoComplete.tsx View on Github external
{filteredData.map((datum, i) => {
            const resultId = getResultId(suggestionsId, i);
            let optionProps: ListboxOptionProps | undefined;
            if (isListboxOptionProps(datum)) {
              optionProps = omit(datum, [labelKey, valueKey]);
            }

            return (
              <option selected="{false}" id="{resultId}"> handleAutoComplete(i)}
              &gt;
                
                  {getResultLabel(datum, labelKey, value)}
                </option>

@react-md/form

This package is for creating all the different form input types.

MIT
Latest version published 9 months ago

Package Health Score

66 / 100
Full package analysis