How to use @pluralsight/ps-design-system-button - 10 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-button 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 / src / ui / code.js View on Github external
const CollapsibleButton = props => (
  <button style="{{">}
    appearance={Button.appearances.flat}
    onClick={props.onClick}
    size={Button.sizes.xSmall}
  &gt;
    {props.isOpen ? 'Hide' : 'Show'} code
  </button>
)
CollapsibleButton.propTypes = {
github pluralsight / design-system / packages / site / pages / components / button.js View on Github external
<content title="Button">
      Button
      <p>Install the component dependency:</p>
      <code>
        npm install @pluralsight/ps-design-system-button
      </code>
      <p>Include a React component in your project:</p>
      <code>
        import Button from '@pluralsight/ps-design-system-button'
      </code>
      primary,
            <span>
              visual style (from <code>Button.appearances</code>)
            </span>
          ]),
          PropTypes.row([
            'disabled',
            'boolean',
            null,
            <code>false</code>,
            'standard input disable flag'
          ]),
          PropTypes.row([
            'href',
            'string',</content>
github pluralsight / design-system / packages / site / pages / components / tooltip.js View on Github external
Look at me
              
            
          

          <div>
            
                  Tooltip
                
              }
              when={isHovered}
            &gt;
              <button> setHovered(true)}
                onMouseOut={_ =&gt; setHovered(false)}
              &gt;
                Hover me
              </button>
            
          </div>

          <div>
            
                  Tooltip
                
              }</div>
github pluralsight / design-system / packages / site / pages / components / dialog.js View on Github external
<button>Cancel</button>
            
          
        }
        dont={
          <dialog>
            
              <h3>Delete record?</h3>
            
            
              This action cannot be reversed. Are you sure you want to delete
              this record?
            
            <div style="{{">
              <button style="{{">
                Yes
              </button>
              <button>No</button>
            </div>
          </dialog>
        }
      /&gt;
    
  
)
github pluralsight / design-system / packages / emptystate / src / react / __stories__ / index.story.js View on Github external
.add('with buttons', _ =&gt; (
    
          
            <button>Asssessments</button>
            <button>Guides</button>
            <button>
              Interactive Courses
            </button>
            <button>Paths</button>
            <button>Projects</button>
            <button>
              Video Courses
            </button>
          
        
      }
    /&gt;
  ))
  .add('with tags', _ =&gt; (
github pluralsight / design-system / packages / emptystate / src / react / __stories__ / index.story.js View on Github external
.add('with buttons', _ =&gt; (
    
          
            <button>Asssessments</button>
            <button>Guides</button>
            <button>
              Interactive Courses
            </button>
            <button>Paths</button>
            <button>Projects</button>
            <button>
              Video Courses
            </button>
          
        
      }
    /&gt;
  ))
  .add('with tags', _ =&gt; (
github pluralsight / design-system / packages / site / pages / components / position.js View on Github external
React.useEffect(() =&gt; {
    if (!button.current || !tooltip.current) return

    const nextStyle = rightOf(button.current).styleFor(tooltip.current)
    setStyle(nextStyle)
  }, [])

  return (
    &lt;&gt;
      <div>
        
          <div>
            <button>
              Hover me
            </button>

            
              Tooltip
            
          </div>
        </div>
github pluralsight / design-system / packages / form / src / react / __stories__ / index.story.js View on Github external
alignsStories.add(a, _ =&gt; (
    
      <div>form stuff</div>
      
        <button>Save</button>
        <button>Cancel</button>
      
    
  ))
)
github pluralsight / design-system / packages / datepicker / src / react / calendar.js View on Github external
setSelected(nextSelected)

    if (isFunction(props.onSelect)) {
      props.onSelect(formatDate(nextSelected), nextSelected)
    }
  }

  return (
    
      <div tabindex="{-1}">
        <div>
          <button>}
            size={Button.sizes.small}
            appearance={Button.appearances.flat}
          /&gt;

          <div>
            {getMonthName(displayed.mm)} {displayed.yyyy}
          </div>

          </button><button>}
            size={Button.sizes.small}
            appearance={Button.appearances.flat}
          /&gt;
        </button></div>

        <div>
          {['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].map(day =&gt; (</div></div>
github pluralsight / design-system / packages / breadcrumb / src / react / index.js View on Github external
const Breadcrumb = React.forwardRef((props, ref) =&gt; {
  const { disabled, href, loading, onClick, ...rest } = props
  return (
    <div>
      <button disabled="{disabled}" href="{href}">}
        loading={loading}
        onClick={onClick}
        ref={ref}
        size={Button.sizes.small}
      &gt;
        {props.children}
      </button>
    </div>
  )
})

@pluralsight/ps-design-system-button

Design System component for button ui

Apache-2.0
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages