How to use the @hig/utils.createButtonEventHandlers function in @hig/utils

To help you get started, we’ve selected a few @hig/utils 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 Autodesk / hig / packages / menu / src / presenters / OptionPresenter.js View on Github external
function OptionWrapper(props) {
  const {
    children,
    disabled,
    id,
    onClick,
    onMouseDown,
    onMouseMove,
    selected,
    highlighted
  } = props;

  const { handleClick, handleKeyDown } = createButtonEventHandlers(onClick);
  return (
    
      {({ resolvedRoles }) => (
github Autodesk / hig / packages / dropdown / src / presenters / OptionPresenter.js View on Github external
function OptionWrapper(props) {
  const {
    children,
    disabled,
    id,
    onClick,
    onMouseDown,
    onMouseMove,
    selected,
    highlighted
  } = props;

  const { handleClick, handleKeyDown } = createButtonEventHandlers(onClick);

  return (
    
      {({ resolvedRoles }) => (

@hig/utils

Non-component specific utility functions for HIG components

Apache-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages