How to use the @instructure/ui-react-utils/lib/callRenderProp function in @instructure/ui-react-utils

To help you get started, we’ve selected a few @instructure/ui-react-utils 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-table / src / components / Table / Cell / index.js View on Github external
render () {
    const { children, textAlign, isStacked, header } = this.props

    return (
      
    )
  }
}
github instructure / instructure-ui / packages / ui-table / src / components / Table / Cell / index.js View on Github external
render () {
    const { children, textAlign, isStacked, header } = this.props

    return (
      
    )
  }
}
github instructure / instructure-ui / packages / ui-table / src / components / Table / ColHeader / index.js View on Github external
})}
        style={{
          width,
        }}
        scope="col"
      >
        {onRequestSort && (
          <button>
            {callRenderProp(children)}
            <div>
              {this.renderSortArrow()}
            </div>
          </button>
        )}
        {!onRequestSort &amp;&amp; children}
        {!onRequestSort &amp;&amp; this.renderSortArrow()}
      
    )
  }
}
github instructure / instructure-ui / packages / ui-table / src / components / Table / RowHeader / index.js View on Github external
render () {
    const { children, textAlign, isStacked } = this.props

    return (
      
    )
  }
}