How to use the @workday/canvas-kit-react-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 / action-bar / react / spec / ActionBar.snapshot.tsx View on Github external
test('renders an action bar with one button', () => {
    const component = renderer.create(
      
        <button>Button</button>
      
    );
    expect(component).toMatchSnapshot();
  });
github Workday / canvas-kit / modules / action-bar / react / spec / ActionBar.snapshot.tsx View on Github external
test('renders an action bar with two buttons', () =&gt; {
    const component = renderer.create(
      
        <button>Button</button>
        <button>Button</button>
      
    );
    expect(component).toMatchSnapshot();
  });
github Workday / canvas-kit / modules / cookie-banner / react / lib / CookieBanner.tsx View on Github external
public render(): React.ReactNode {
    const {isClosed, onAccept, onClickSettings, notice, settingsLabel, ...elemProps} = this.props;

    return (
      
        {notice}
        
          {onClickSettings &amp;&amp; (
            {settingsLabel}
          )}
          <button>
            Continue
          </button>
        
      
    );
  }
}