How to use @pluralsight/ps-design-system-actionmenu - 4 common examples

To help you get started, we’ve selected a few @pluralsight/ps-design-system-actionmenu 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 / actionmenu.js View on Github external
'onClose',
              'function',
              null,
              null,
              'triggered when a menu collapses; providing it renders an overlay that triggers this function on click'
            ]),
            PropTypes.row([
              'onChange',
              <span>(Event, value, label) =&gt; ()</span>,
              null,
              null,
              'triggered when an item selected'
            ]),
            PropTypes.row([
              'origin',
              PropTypes.union(ActionMenu.origins),
              null,
              <code>topLeft</code>,
              <span>
                orientation (from <code>ActionMenu.origins</code>) of nested
                menus
              </span>
            ]),
            PropTypes.row([
              'shouldFocusOnMount',
              'boolean',
              null,
              <code>true</code>,
              'focus first menu item on render'
            ])
          ],
          'ActionMenu.Item': [
github pluralsight / design-system / packages / site / pages / components / actionmenu.js View on Github external
min-height: 200px;
        }
        .label {
          padding: ${core.layout.spacingLarge} 0;
          font-size: ${core.type.fontSizeMedium};
        }
      `}

      
        <div>
          
                
                  {categories.map(cat =&gt; (
                    
                          {cat.options.map(opt =&gt; (
                            
                              {opt.label}
                            
                          ))}
                        
                      }
                    &gt;
                      {cat.name}</div>
github pluralsight / design-system / packages / note / src / react / __stories__ / index.story.js View on Github external
const Story = props =&gt; {
      const [isOpen, setIsOpen] = React.useState(false)

      return (
        
          
                    
                      Edit
                      Delete
                    
                  
                }
              &gt;
                }
                  onClick={_ =&gt; setIsOpen(!isOpen)}
                  title="More"
                /&gt;
              
            ]}
            actionBarVisible
          /&gt;
github pluralsight / design-system / packages / site / pages / components / actionmenu.js View on Github external
Four item
  

`
        ]}
      /&gt;

      Origin
      <p>
        The origin prop determines the starting position and direction of nested
        menus.
      </p>
      <code>
        {Object.keys(ActionMenu.origins)
          .reduce(
            (acc, origin) =&gt; acc.concat([`ActionMenu.origins.${origin}`]),
            []
          )
          .join('\n')}
      </code>
      <p>Here's an example of ActionMenu.origins.bottomRight in action:</p>

@pluralsight/ps-design-system-actionmenu

Design System component for actionmenu ui

Apache-2.0
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis

Popular @pluralsight/ps-design-system-actionmenu functions

Similar packages