How to use @pluralsight/ps-design-system-halo - 8 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-halo 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 pluralsight / design-system / packages / tag / src / react / index.js View on Github external
const Tag = props => {
  const TagName = props.href ? 'a' : 'div'
  const themeName = useTheme()

  return (
    
      
        <label>{props.children}</label>
        {renderIcon(props)}
      
    
  )
}
github pluralsight / design-system / packages / dropdown / src / react / index.js View on Github external
return (
    &lt;&gt;
      {isOpen &amp;&amp; (
        <div>
      )}
      <label style="">
        {allProps.label &amp;&amp; (
          <div>{allProps.label}</div>
        )}
        <div>
          
            <div>
              <button disabled="{allProps.disabled}">
                <span aria-hidden="">
                  {longestMenuItemState.label || allProps.placeholder}
                </span>
                <span>
                  {selectedLabel || allProps.placeholder}
                </span>
              </button>
              <div></div></div></div></label></div>
github pluralsight / design-system / packages / textarea / src / react / index.js View on Github external
const TextArea = (props, context) =&gt; {
  const themeName = useTheme()
  const allProps = { ...props, themeName }

  return (
    <label>
      {allProps.label &amp;&amp; (
        <div>{allProps.label}</div>
      )}
      <div>
        
          <textarea style="{{" placeholder="{allProps.placeholder}" disabled="{allProps.disabled}">        &lt;/Halo&gt;
        {allProps.error &amp;&amp; (
          &lt;div {...styles.error(allProps)}&gt;
            &lt;WarningIcon /&gt;
          &lt;/div&gt;
        )}
      &lt;/div&gt;
      {allProps.subLabel &amp;&amp; (</textarea></div></label>
github pluralsight / design-system / packages / datepicker / src / react / index.js View on Github external
}

  const { className, style, ...rest } = props

  return (
    <label style="{style}">
      {props.label &amp;&amp; (
        <div>{props.label}</div>
      )}

      
        <div>
          

          

          </div></label>
github pluralsight / design-system / packages / textinput / src / react / index.js View on Github external
subLabel,
    ...inputProps
  } = allProps

  const { fieldRef, inputRef } = useMultipleRefs(forwardedRef)

  return (
    <label>
      {label &amp;&amp; <div>{label}</div>}

      <div>
        
          <div>
            <input placeholder="{allProps.placeholder}" disabled="{allProps.disabled}">
            {fieldAfter}
          </div>
        

        {icon &amp;&amp; <div>{icon}</div>}

        {error &amp;&amp; (
          <div></div></div></label>
github pluralsight / design-system / packages / switch / src / react / index.js View on Github external
const handleFocus = combineFns(() =&gt; {
    setIsFocused(true)
  }, props.onFocus)

  return (
    <button role="checkbox" aria-checked="{checked}">
      
        <div>
          <div>
        </div>
      

      <input type="checkbox" tabindex="-1" readonly="" checked="{checked}">

      {children &amp;&amp; (
        <label>{children}</label></div></button>
github pluralsight / design-system / packages / radio / src / react / button.js View on Github external
if (isFunction(props.onClick)) props.onClick(evt, value)
    props._onFocus(evt, value)

    circleRef.current.focus()
  }

  const { _disabled, _error, _isFocused, _onFocus, _name } = props

  return (
    <label>
      <div>
        
          <div tabindex="-1" aria-checked="{props.checked}" role="radio"> _onFocus(props.value)}
            ref={circleRef}
            {...styles.circle(themeName, props)}
          &gt;
            {props.checked &amp;&amp; <div>}
          </div>
        
      </div></div></label>
github pluralsight / design-system / packages / checkbox / src / react / index.js View on Github external
if (typeof onCheck === 'function') {
      onCheck(evt, !props.checked, props.value, props.name)
    }

    if (square.current) square.current.focus()
  }

  return (
    <label>
      
        <div tabindex="{props.disabled" role="checkbox" aria-checked="{props.checked}">
          {props.indeterminate &amp;&amp; }
          {props.checked &amp;&amp; !props.indeterminate &amp;&amp; }
        </div>
      

      </label>

@pluralsight/ps-design-system-halo

Design System component for halo ui

Apache-2.0
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages