How to use the @workday/canvas-kit-react-button.Button.Variant function in @workday/canvas-kit-react-button

To help you get started, we’ve selected a few @workday/canvas-kit-react-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 Workday / canvas-kit / modules / side-panel / react / stories / stories.tsx View on Github external
{open ? (
          <button>Add New</button>
        ) : (
          
            
          
        )}
        {/* TODO replace this with our list component */}
        
          
            <span>
              
            </span>
github Workday / canvas-kit / modules / popup / react / stories / stories.tsx View on Github external
public render() {
    const {anchorEl, open} = this.state;
    return (
      <div style="{{display:">
        <button>
          Delete Item
        </button>
        
          
            <div style="{{marginBottom:">
              Are you sure you'd like to delete the item titled 'My Item'?
            </div>

            </div>
github Workday / canvas-kit / modules / popup / react / stories / stories.tsx View on Github external
heading={'Delete Item'}
            padding={Popup.Padding.s}
            handleClose={this.handleClose}
          &gt;
            <div style="{{marginBottom:">
              Are you sure you'd like to delete the item titled 'My Item'?
            </div>

            <button style="{{marginRight:">
              Delete
            </button>
            <button>
              Cancel
            </button>
          
        
      
    );
  }
github Workday / canvas-kit / modules / modal / react / stories / stories.tsx View on Github external
};
  const closeModal = () =&gt; {
    setOpen(false);
    if (buttonRef.current) {
      buttonRef.current.focus();
    }
  };

  return (
    &lt;&gt;
      <button>
        Delete Item
      </button>
      
        <p>Are you sure you'd like to delete the item titled 'My Item'?</p>
        <button style="{{marginRight:">
          Delete
        </button>
        <button>
          Cancel
        </button>
      
    
  );
};
github Workday / canvas-kit / modules / modal / react / stories / stories.tsx View on Github external
const CustomFocusModalExample = () =&gt; {
  const {targetProps, modalProps, closeModal} = useModal();
  const buttonRef = React.useRef() as React.RefObject;

  return (
    &lt;&gt;
      <button>
        Delete Item
      </button>
      
        <p>Are you sure you'd like to delete the item titled 'My Item'?</p>
        <button style="{{marginRight:">
          Delete
        </button>
        <button>
          Cancel
        </button>