How to use @instructure/ui-view - 10 common examples

To help you get started, we’ve selected a few @instructure/ui-view 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-elements / src / Progress / ProgressBar / index.js View on Github external
[styles.done]: this.props.successColor &&
        (this.props.valueNow / this.props.valueMax >= 1)
    }

    const {
      formatDisplayedValue,
      formatValueText,
      valueNow,
      valueMax,
      label
    } = this.props

    const valueText = formatValueText(valueNow, valueMax)
    const value = (typeof formatDisplayedValue === 'function') && formatDisplayedValue(valueNow, valueMax)

    const passthroughProps = View.omitViewProps(
      omitProps(this.props, ProgressBar.propTypes, ['animateOnMount']),
      ProgressBar
    )
    /* eslint-disable jsx-a11y/no-redundant-roles, jsx-a11y/no-noninteractive-element-to-interactive-role */
    return (
github instructure / instructure-ui / packages / ui-focusable / src / FocusableView / index.js View on Github external
display,
      elementRef,
      focused,
      href,
      margin,
      onClick,
      role,
      shape,
      className, // eslint-disable-line react/prop-types
      to,  // eslint-disable-line react/prop-types
      width,
      tabIndex,
      ...props
    } = this.props

    const passthroughProps = View.omitViewProps(
      omitProps(props, FocusableView.propTypes),
      FocusableView
    )

    return (
github instructure / instructure-ui / packages / ui-table / src / Table / index.js View on Github external
render () {
    // eslint-disable-next-line react/prop-types
    const { margin, elementRef, layout, caption, children, hover, mode } = this.props
    const isStacked = layout === 'stacked' || mode === 'stacked'
    const headers = isStacked ? this.getHeaders() : null

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

    return (
github instructure / instructure-ui / packages / ui-elements / src / Tag / index.js View on Github external
title,
      onClick,
      margin,
      variant
    } = this.props

    const classes = {
      [styles.root]: true,
      [styles[variant]]: true,
      [styles[size]]: size,
      [styles.dismissible]: dismissible,
      [styles.button]: onClick,
      [styles.disabled]: disabled
    }

    const passthroughProps = View.omitViewProps(
      omitProps(this.props, Tag.propTypes),
      Tag
    )

    return (
github instructure / instructure-ui / packages / ui-pagination / src / Pagination / index.js View on Github external
render () {
    if (!this.props.children) return null

    const currentPageIndex = fastFindIndex(
      this.props.children,
      p => p && p.props && p.props.current
    )

    const passthroughProps = View.omitViewProps(
      omitProps(this.props, Pagination.propTypes),
      Pagination
    )

    return (
github instructure / instructure-ui / packages / ui-calendar / src / Calendar / index.js View on Github external
render () {
    const passthroughProps = View.omitViewProps(
      omitProps(this.props, Calendar.propTypes),
      Calendar
    )

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

    return (
      
    )
  }
}
github instructure / instructure-ui / packages / ui-layout / src / Media / index.js View on Github external
render () {
    const passthroughProps = View.omitViewProps(
      omitProps(this.props, Media.propTypes),
      Media
    )

    return (
github instructure / instructure-ui / packages / ui-calendar / src / Calendar / Day / index.js View on Github external
} = this.props

    const {
      elementType,
      isDisabled
    } = this

    const classes = classnames({
      [styles.day]: true,
      [styles.outsideMonth]: isOutsideMonth,
      [styles.selected]: isSelected,
      [styles.today]: isToday && !isSelected,
      [styles.disabled]: isDisabled
    })

    const passthroughProps = View.omitViewProps(
      omitProps(props, Day.propTypes),
      Day
    )

    return (

@instructure/ui-view

A component for basic styles including spacing, sizing, borders, display, positioning, and focus states.

MIT
Latest version published 6 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages