How to use @pluralsight/ps-design-system-avatar - 7 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-avatar 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 / site / pages / components / table.js View on Github external
{state.rows.sort(sortRows).map(row => (
              
                
                  
                  <div style="{{">
                    {row.name}
                  </div>
                
                
                  {row.courses}
                
                
                  {row.viewTime}m
                
              
            ))}
github pluralsight / design-system / packages / site / pages / components / avatar.js View on Github external
<code>
        import Avatar from '@pluralsight/ps-design-system-avatar'
      </code>

      medium,
            <span>
              avatar size (from <code>Avatar.sizes</code>)
            </span>
          ]),
          PropTypes.row([
            'src',
            'string',
            null,
            null,
            'URI or path to avatar image'
          ])
        ]}
      /&gt;
github pluralsight / design-system / packages / note / src / react / index.js View on Github external
function AvatarLink(props) {
  const link = props.children
  const avatar = link.props.children

  return (
    
      {React.cloneElement(link, {
        children: React.cloneElement(avatar, { size: Avatar.sizes.xSmall })
      })}
    
  )
}
AvatarLink.propTypes = {
github pluralsight / design-system / packages / note / src / react / index.js View on Github external
{props.actionBar.map((action, key) =&gt; {
        return React.cloneElement(action, { key })
      })}
    
  ) : null

  return (
    <div>
      {hasAside &amp;&amp; (
        <aside>
          {React.cloneElement(props.avatar, { size: Avatar.sizes.xSmall })}
        </aside>
      )}

      
        {hasHeading &amp;&amp; (
          <header>
            {props.heading &amp;&amp; {props.heading}}
            {actionBar}
          </header>
        )}

        {props.message}

        <footer>
          {hasMetadata &amp;&amp; (
            </footer></div>
github pluralsight / design-system / packages / site / pages / components / avatar.js View on Github external
]),
          PropTypes.row([
            'src',
            'string',
            null,
            null,
            'URI or path to avatar image'
          ])
        ]}
      /&gt;

      Size
      <p>Five avatar sizes are available.</p>
      
            ``
        )}
      /&gt;

      Default with initials
      <p>
        An avatar with a visual image is preferred. In cases where the image is
        unavailable or loading, initials of the person pictured will be
        displayed. Always provide the <code>name</code> prop as a fallback.
      </p>
      `,
          ``,
github pluralsight / design-system / packages / site / pages / components / card.js View on Github external
<ul>
          <li>
            }&gt;Path}
              title={Advanced TypeScript}
              progress={0}
              image={}
              metadata1={['Brice Wilson', 'Advanced']}
              metadata2={['0m watched']}
              size={Card.sizes.small}
            /&gt;
          </li>
          <li>
            }
              title={
                
                  Getting Started with Reactive Programming Using RxJS
                
              }
              progress={20}
              image={}
              metadata1={['Scott Allen', 'Intermediate']}
              metadata2={['23m watched']}
              size={Card.sizes.small}
            /&gt;
          </li>
          <li>
            </li></ul>
github pluralsight / design-system / packages / site / pages / components / table.js View on Github external
{state.rows.sort(sortRows).map(row =&gt; (
              
                
                  
                  <div style="{{">
                    {row.name}
                  </div>
                
                
                  {row.courses}
                
                
                  {row.viewTime}m
                
              
            ))}

@pluralsight/ps-design-system-avatar

Design System component for avatar ui

Apache-2.0
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages