How to use the @instructure/ui-options.Options.propTypes function in @instructure/ui-options

To help you get started, we’ve selected a few @instructure/ui-options 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 instructure / instructure-ui / packages / ui-select / src / Select / index.js View on Github external
const groupChildren = []
    // add a separator above
    if (!isFirstChild && !afterGroup) {
      groupChildren.push()
    }
    // create a sublist as a group
    // a wrapping listitem will be created by Options
    groupChildren.push(
      
        {Children.map(children, (child) => {
          return this.renderOption(child, {
            getOptionProps,
            getDisabledOptionProps
          })
        })}
      
    )
    // add a separator below
    if (!isLastChild) {
      groupChildren.push()
    }

@instructure/ui-options

A view-only component for composing interactive lists and menus.

MIT
Latest version published 2 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages